Search Results for

    Show / Hide Table of Contents

    Class ThrowIf

    Validator class that throws exceptions if conditions are not met.

    Inheritance
    object
    ThrowIf
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9
    Assembly: Glitch9.dll
    Syntax
    public static class ThrowIf

    Methods

    | Edit this page View Source

    NullOrEmpty(string, string, string)

    Declaration
    public static void NullOrEmpty(string arg, string name = null, string caller = null)
    Parameters
    Type Name Description
    string arg
    string name
    string caller
    | Edit this page View Source

    NullOrEmpty<T>(ICollection<T>, string, string)

    Declaration
    public static void NullOrEmpty<T>(ICollection<T> arg, string name = null, string caller = null)
    Parameters
    Type Name Description
    ICollection<T> arg
    string name
    string caller
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    NullOrEmpty<T>(T, string, string)

    Declaration
    public static void NullOrEmpty<T>(T arg, string name = null, string caller = null) where T : IEmptiable
    Parameters
    Type Name Description
    T arg
    string name
    string caller
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    NullOrWhiteSpace(string, string, string)

    Declaration
    public static void NullOrWhiteSpace(string arg, string name = null, string caller = null)
    Parameters
    Type Name Description
    string arg
    string name
    string caller
    | Edit this page View Source

    Null<T>(T, string, string)

    Declaration
    public static void Null<T>(T arg, string name = null, string caller = null)
    Parameters
    Type Name Description
    T arg
    string name
    string caller
    Type Parameters
    Name Description
    T
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation