Class ConfigFileExtensions
Inheritance
ConfigFileExtensions
Assembly: Acoustics.Shared.dll
Syntax
public static class ConfigFileExtensions
Methods
|
Improve this Doc
View Source
NotNull(Object, FileInfo, String, String)
Declaration
[ContractAnnotation("value:null => halt")]
public static void NotNull(this object value, FileInfo file, string name = null, string message = "must be set in the config file")
Parameters
|
Improve this Doc
View Source
ValidateLessThan<T>(Object, Nullable<T>, String, Nullable<T>, String, String)
Declaration
public static ValidationResult ValidateLessThan<T>(this object _, T? a, string nameA, T? b, string nameB, string message = "{0} is not less than {1} - adjust the values in the config file")
where T : struct, IComparable<T>
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
ValidateNotEmpty<T>(T[], String, String)
Declaration
public static ValidationResult ValidateNotEmpty<T>(this T[] value, string name, string message = "is an empty list - we need at least one value in the config file")
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
ValidateNotNull(Object, String, String)
Declaration
public static ValidationResult ValidateNotNull(this object value, string name, string message = "must be set and be not null in the config file")
Parameters
Returns