Show / Hide Table of Contents

    Class List

    Functions for working with lists.

    Inheritance
    System.Object
    List
    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: Virtlink.Utilib.Collections
    Assembly: Virtlink.Utilib.dll
    Syntax
    public static class List

    Methods

    | Improve this Doc View Source

    Copy<T>(IReadOnlyList<T>, IList<T>, Int32)

    Copies elements from one list to another.

    Declaration
    public static void Copy<T>(IReadOnlyList<T> sourceList, IList<T> destinationList, int count)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<T> sourceList

    The source list.

    System.Collections.Generic.IList<T> destinationList

    The destination list.

    System.Int32 count

    The number of elements to copy.

    Type Parameters
    Name Description
    T

    The type of elements in the lists.

    | Improve this Doc View Source

    Copy<T>(IReadOnlyList<T>, Int32, IList<T>, Int32, Int32)

    Copies elements from one list to another.

    Declaration
    public static void Copy<T>(IReadOnlyList<T> sourceList, int sourceIndex, IList<T> destinationList, int destinationIndex, int count)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<T> sourceList

    The source list.

    System.Int32 sourceIndex

    The source index.

    System.Collections.Generic.IList<T> destinationList

    The destination list.

    System.Int32 destinationIndex

    The destination index.

    System.Int32 count

    The number of elements to copy.

    Type Parameters
    Name Description
    T

    The type of elements in the lists.

    | Improve this Doc View Source

    Empty<T>()

    Returns a read-only empty list.

    Declaration
    public static IReadOnlyList<T> Empty<T>()
    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<T>

    The read-only empty list.

    Type Parameters
    Name Description
    T

    The type of elements in the list.

    • Improve this Doc
    • View Source
    Back to top Copyright - Daniel Pelsmaeker