+ /// CapyEventReporter.EmitEvent(EventLevel.Error, "Could not find the description for {0}.", args: new[] { enumeration });
+ ///
///
+ /// public int main(string[] args)
+ /// {
+ /// // Set up SettingsHelper with custom accessor and detector methods
+ /// Func<string, object> accessor = (key) =>
+ /// {
+ /// Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
+ /// return config.AppSettings.Settings[key].Value;
+ /// };
+ ///
+ /// Func<string, bool> detector = (key) =>
+ /// {
+ /// Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
+ /// return config.AppSettings.Settings.AllKeys.Contains(key);
+ /// };
+ ///
+ /// SettingsHelper.SetAccessorMethod(accessor);
+ /// SettingsHelper.SetDetectorMethod(detector);
+ ///
+ /// // Use the helper to retrieve and set settings
+ /// SettingsHelper.SetApplicationSetting<int>("MySettingKey", 42);
+ /// int newSetting = SettingsHelper.GetApplicationSetting<int>("MySettingKey");
+ /// Console.WriteLine("New setting: {0}", newSetting);
+ ///
+ /// int mySetting = SettingsHelper.GetApplicationSetting<int>("MySettingKey");
+ /// Console.WriteLine("Retrieved setting: {0}", mySetting);
+ /// }
+ ///
+ /// [TODO: Add links to each specific version page]
chars | +The valid hexidecimal characters. |
EARTH_RADIUS_KILOMETERS | +The earth's radius in kilometers. |
MILES_PER_KILOMETER | +Ratio of miles per kilometer . |
accessor | +Private delegate function that retrieves a setting with the given key . Returns the setting as an uncast Object. |
detector | +Private delegate function that detects if a setting with a given key exists. Returns true if the setting exists, false if not. |
ArgumentNullException | +Thrown when one or more required arguments are null. |
ArgumentNullException | +Thrown when one or more required arguments are null. |
CalculateHash | +Calculates the hash of a given string using an MD5 value as the first 32 bits. |
CalculateHexHash | +Calculates the hexadecimal hash. |
DegreesToRadians | +Convers degrees to radians. |
GetDistance(Decimal, Decimal, Decimal, Decimal, MeasurementSystem) | +Gets the distance between two points on earth using the haversine formula. |
GetDistance(Double, Double, Double, Double, MeasurementSystem) | +Gets the distance between two points on earth using the haversine formula. |
KilometersToMiles | +Converts kilometers to miles. |
MilesToKilometers | +Converts miles to kilometers. |
RadiansToDegrees | +Converts radians to degrees. |
GetApplicationSetting(T) | +Retrieves a setting with the given key . Returns the setting as an uncast T. |
SetAccessorMethod | +Sets the function used to retrieve application settings. |
SetDetectorMethod | +Sets the function used to detect if an application setting with a given key exists. |
MeasurementSystem | +An enumeration representing different measurement systems. |
CalculationHelper | +Static class providing helper methods for various calculations. |
CompressionHelper | A class that contains methods for managing data compression. |
LanguageHelper | -Helper class for handling text transformations. |
SecurityHelper | A class that contains methods for managing secure data processing and cryptography. |
SerializationHelper | |
SettingsHelper | +Static class containing helper methods for retrieving and setting application settings. |
GetDistance(Decimal, Decimal, Decimal, Decimal, MeasurementSystem) | +Gets the distance between two points on earth using the haversine formula. |
GetDistance(Double, Double, Double, Double, MeasurementSystem) | +Gets the distance between two points on earth using the haversine formula. |
CapyKit | +|
CapyKit.Attributes | +|
CapyKit.Enumerations | +|
CapyKit.Extensions | +|
CapyKit.Helpers | +
Imperial | +0 | +The imperial measurement system. |
Metric | +1 | +The metric measurement system. |
Inheritance | Object → CalculationHelper |
CalculateHash | +Calculates the hash of a given string using an MD5 value as the first 32 bits. |
CalculateHexHash | +Calculates the hexadecimal hash. |
DegreesToRadians | +Convers degrees to radians. |
GetDistance(Decimal, Decimal, Decimal, Decimal, MeasurementSystem) | +Gets the distance between two points on earth using the haversine formula. |
GetDistance(Double, Double, Double, Double, MeasurementSystem) | +Gets the distance between two points on earth using the haversine formula. |
KilometersToMiles | +Converts kilometers to miles. |
MilesToKilometers | +Converts miles to kilometers. |
RadiansToDegrees | +Converts radians to degrees. |
chars | +The valid hexidecimal characters. |
EARTH_RADIUS_KILOMETERS | +The earth's radius in kilometers. |
MILES_PER_KILOMETER | +Ratio of miles per kilometer . |
Inheritance | Object → SettingsHelper |
SettingsHelper | +
GetApplicationSetting(T) | +Retrieves a setting with the given key . Returns the setting as an uncast T. |
SetAccessorMethod | +Sets the function used to retrieve application settings. |
SetDetectorMethod | +Sets the function used to detect if an application setting with a given key exists. |
accessor | +Private delegate function that retrieves a setting with the given key . Returns the setting as an uncast Object. |
detector | +Private delegate function that detects if a setting with a given key exists. Returns true if the setting exists, false if not. |
[TODO: Add change items here]