Search Results for

    Show / Hide Table of Contents

    Class ReferenceList<T>

    List of Reference<T>.

    Inheritance
    object
    Collection<Reference<T>>
    ObservableCollection<Reference<T>>
    ReferenceList<T>
    Namespace: GGL.DB.Reference
    Assembly: GGL.dll
    Syntax
    [Serializable]
    public sealed class ReferenceList<T> : ObservableCollection<Reference<T>> where T : Data
    Type Parameters
    Name Description
    T

    Data type

    Constructors

    | Edit this page View Source

    ReferenceList()

    Declaration
    public ReferenceList()
    | Edit this page View Source

    ReferenceList(params ulong[])

    Declaration
    public ReferenceList(params ulong[] ids)
    Parameters
    Type Name Description
    ulong[] ids List of .
    | Edit this page View Source

    ReferenceList(params T[])

    Declaration
    public ReferenceList(params T[] items)
    Parameters
    Type Name Description
    T[] items List of .

    Properties

    | Edit this page View Source

    Values

    Declaration
    [JsonIgnore]
    public List<T> Values { get; }
    Property Value
    Type Description
    List<T>

    Access the cached list of datas.

    Remarks

    If not cached yet, will cache it for you :) .

    Methods

    | Edit this page View Source

    Remove(ulong)

    Remove the first item corresponding to ID

    Declaration
    public void Remove(ulong id)
    Parameters
    Type Name Description
    ulong id
    | Edit this page View Source

    Sort(IComparer<Reference<T>>)

    Sorts the elements or a portion of the elements in the ReferenceList<T> using either the specified or default IComparer<T> implementation or a provided Comparison<T> delegate to compare list elements.

    Declaration
    public void Sort(IComparer<Reference<T>> comparer)
    Parameters
    Type Name Description
    IComparer<Reference<T>> comparer

    Operators

    | Edit this page View Source

    implicit operator List<T>(ReferenceList<T>)

    Declaration
    public static implicit operator List<T>(ReferenceList<T> current)
    Parameters
    Type Name Description
    ReferenceList<T> current List of .
    Returns
    Type Description
    List<T> List of .
    | Edit this page View Source

    implicit operator T[](ReferenceList<T>)

    Declaration
    public static implicit operator T[](ReferenceList<T> current)
    Parameters
    Type Name Description
    ReferenceList<T> current List of .
    Returns
    Type Description
    T[] List of .

    Extension Methods

    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T, int>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    EnumerableExtensions.Shuffle<T>(IEnumerable<T>)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX