Show / Hide Table of Contents

    Struct Singleton<T>

    The singleton.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.GetType()
    Object.ReferenceEquals(Object, Object)
    Namespace: Platform.Singletons
    Assembly: Platform.Singletons.dll
    Syntax
    public struct Singleton<T>
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

    Singleton(Func<T>)

    Initializes a new Singleton instance.

    Declaration
    public Singleton(Func<T> creator)
    Parameters
    Type Name Description
    Func<T> creator

    A creator.

    Properties

    | Improve this Doc View Source

    Instance

    Gets the instance value.

    Declaration
    public T Instance { get; }
    Property Value
    Type Description
    T
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX