Show / Hide Table of Contents

    Class ListSliceExtensions

    Extension methods for the ListSlice<T> class.

    Inheritance
    System.Object
    ListSliceExtensions
    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 ListSliceExtensions

    Methods

    | Improve this Doc View Source

    Skip<T>(IReadOnlyList<T>, Int32)

    Skips the first elements from the list.

    Declaration
    public static IReadOnlyList<T> Skip<T>(this IReadOnlyList<T> list, int count)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<T> list

    The list.

    System.Int32 count

    The number of elements.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<T>

    The resulting list.

    Type Parameters
    Name Description
    T

    The type of elements.

    | Improve this Doc View Source

    Take<T>(IReadOnlyList<T>, Int32)

    Takes the first elements from the list.

    Declaration
    public static IReadOnlyList<T> Take<T>(this IReadOnlyList<T> list, int count)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<T> list

    The list.

    System.Int32 count

    The number of elements.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<T>

    The resulting list.

    Type Parameters
    Name Description
    T

    The type of elements.

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