Show / Hide Table of Contents

    Class NotNullExtensions

    Extensions for NotNull
    Inheritance
    System.Object
    NotNullExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Maki
    Assembly: Maki.dll
    Syntax
    public static class NotNullExtensions

    Methods

    | Improve this Doc View Source

    Bind<T, U>(NotNull<T>, Func<T, NotNull<U>>)

    Binds the given function to the NotNull.
    Declaration
    public static NotNull<U> Bind<T, U>(this NotNull<T> notNull, Func<T, NotNull<U>> func)
    Parameters
    Type Name Description
    NotNull<T> notNull This instance.
    System.Func<T, NotNull<U>> func Function to bind.
    Returns
    Type Description
    NotNull<U> NotNull containing the result of the function.
    Type Parameters
    Name Description
    T NotNull type.
    U Function return NotNull type.
    | Improve this Doc View Source

    Map<T, U>(NotNull<T>, Func<T, U>)

    Mapsthe given function to the NotNull.
    Declaration
    public static NotNull<U> Map<T, U>(this NotNull<T> notNull, Func<T, U> func)
    Parameters
    Type Name Description
    NotNull<T> notNull This instance.
    System.Func<T, U> func Function to map.
    Returns
    Type Description
    NotNull<U> NotNull containing the result of the function.
    Type Parameters
    Name Description
    T NotNull type.
    U Function return type
    Exceptions
    Type Condition
    System.ArgumentNullException Thrown if the function returns null.
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX