Search Results for

    Show / Hide Table of Contents

    Class LazyBy<T>

    Lazy value with params

    Inheritance
    System.Object
    LazyBy<T>
    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: LibSugar
    Assembly: LibSugar.dll
    Syntax
    public abstract class LazyBy<T>
    Type Parameters
    Name Description
    T

    Properties

    | Improve this Doc View Source

    IsValueCreated

    Check is the value created

    Declaration
    public abstract bool IsValueCreated { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Value

    Get the value

    Declaration
    public abstract T Value { get; }
    Property Value
    Type Description
    T

    Methods

    | Improve this Doc View Source

    Create<P>(Func<P>, Func<T>, Boolean)

    Make an assoc Lazy

    Declaration
    public static LazyBy<T> Create<P>(Func<P> selector, Func<T> getter, bool threadSafe = true)
    Parameters
    Type Name Description
    System.Func<P> selector
    System.Func<T> getter
    System.Boolean threadSafe
    Returns
    Type Description
    LazyBy<T>
    Type Parameters
    Name Description
    P

    Extension Methods

    Sugar.Borrow<T>(T)
    Sugar.Owner<T>(T)
    Sugar.AssertEq<T>(T, T)
    Sugar.AssertNe<T>(T, T)
    Sugar.AssertSame<T>(T, T)
    Sugar.AssertNotSame<T>(T, T)
    Sugar.Box<T>(T)
    Sugar.Ref<T>(T)
    Sugar.Let<T, U>(T, Func<T, U>)
    Sugar.LetIf<T>(T, Boolean, Func<T, T>)
    Sugar.Also<T>(T, Action<T>)
    Sugar.AlsoIf<T>(T, Boolean, Action<T>)
    Sugar.MovableBy<T>(T, MovableBy<T>.Drop)
    Sugar.Seq<T>(T)
    Sugar.Seq<T>(T, T[])
    Sugar.Repeat<T>(T, Int32)
    SugarClass.AssertNull<T>(T)
    SugarClass.AssertNonNull<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © LibSugar.
    Generated by DocFX