Search Results for

    Show / Hide Table of Contents

    Class ConfigFileExtensions

    Inheritance
    Object
    ConfigFileExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Acoustics.Shared.ConfigFile
    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
    Type Name Description
    Object value
    FileInfo file
    String name
    String message
    | 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
    Type Name Description
    Object _
    Nullable<T> a
    String nameA
    Nullable<T> b
    String nameB
    String message
    Returns
    Type Description
    ValidationResult
    Type Parameters
    Name Description
    T
    | 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
    Type Name Description
    T[] value
    String name
    String message
    Returns
    Type Description
    ValidationResult
    Type Parameters
    Name Description
    T
    | 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
    Type Name Description
    Object value
    String name
    String message
    Returns
    Type Description
    ValidationResult
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top