Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Class ReadOnlyList<T>

    Provides a read-only wrapper around a List<T>.

    Inheritance
    object
    ReadOnlyList<T>
    Implements
    IList<T>
    ICollection<T>
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Singulink.Collections
    Assembly: Singulink.Collections.dll
    Syntax
    public class ReadOnlyList<T> : IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    T Provides a read-only wrapper around a .

    Constructors

    Name Description
    ReadOnlyList(List<T>)

    Initializes a new instance of the ReadOnlyList<T> class.

    Properties

    Name Description
    Count

    Gets the number of items contained in the list.

    Empty

    Gets an empty read-only list.

    this[int]

    Gets the item at the specified index.

    Methods

    Name Description
    BinarySearch(int, int, T, IComparer<T>?)

    Searches a range of items in the sorted list and returns the index of the item.

    BinarySearch(T)

    Searches the items in the sorted list and returns the index of the item.

    BinarySearch(T, IComparer<T>?)

    Searches the items in the sorted list and returns the index of the item.

    Contains(T)

    Determines whether an item is in the list.

    ConvertAll<TOutput>(Converter<T, TOutput>)

    Converts the items in the current list to another type, and returns a list containing the converted items.

    CopyTo(int, T[], int, int)

    Copies a range of items from the list to an array starting at the specified array index.

    CopyTo(T[])

    Copies the list to an array.

    CopyTo(T[], int)

    Copies the list to an array starting at the specified array index.

    Exists(Predicate<T>)

    Determines whether the list contains an item that matches the condition specified by the specified predicate.

    Find(Predicate<T>)

    Searches the list for an item that matches the conditions in the specified predicate and returns the first matching item.

    FindAll(Predicate<T>)

    Returns all the items in the list that match the condition in the specified predicate.

    FindIndex(int, int, Predicate<T>)

    Searches for an item that matches the conditions defined by the specified predicate, and returns the index of the first occurrence within the range of items in the list that starts at the specified index and contains the specified number of items.

    FindIndex(int, Predicate<T>)

    Searches for an item that matches the conditions defined by the specified predicate, and returns the index of the first occurrence within the range of items in the list that extends from the specified index to the last item.

    FindIndex(Predicate<T>)

    Searches for an item that matches the conditions defined by the specified predicate, and returns the index of the first occurrence within the entire list.

    FindLast(Predicate<T>)

    Searches for an item that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire list.

    FindLastIndex(int, int, Predicate<T>)

    Searches for an item that matches the conditions defined by the specified predicate, and returns the index of the last occurrence within the range of items in the list that contains the specified number of items and ends at the specified index.

    FindLastIndex(int, Predicate<T>)

    Searches for an item that matches the conditions defined by the specified predicate, and returns the index of the last occurrence within the range of items in the list that extends from the first item to the specified index.

    FindLastIndex(Predicate<T>)

    Searches for an item that matches the conditions defined by the specified predicate, and returns the index of the last occurrence within the entire list.

    ForEach(Action<T>)

    Performs the specified action on each item of the list.

    GetEnumerator()

    Returns an enumerator that iterates through the list.

    GetRange(int, int)

    Creates a shallow copy of a range of items in the source list.

    IndexOf(T)

    Searches for the specified object and returns the index of the first occurrence within the entire list.

    IndexOf(T, int)

    Searches for the specified object and returns the index of the first occurrence within the range of items in the list that extends from the specified index to the last item.

    IndexOf(T, int, int)

    Searches for the specified object and returns the index of the first occurrence within the range of items in the list that starts at the specified index and contains the specified number of items.

    LastIndexOf(T)

    Searches for the specified object and returns the index of the last occurrence within the entire list.

    LastIndexOf(T, int)

    Searches for the specified object and returns the index of the last occurrence within the range of items in the list that extends from the first item to the specified index.

    LastIndexOf(T, int, int)

    Searches for the specified object and returns the index of the last occurrence within the range of items in the list that contains the specified number of items and ends at the specified index.

    ToArray()

    Copies the items of the list to a new array.

    TrueForAll(Predicate<T>)

    Determines whether every item in the list matches the conditions defined by the specified predicate.

    Explicit Interface Implementations

    Name Description
    ICollection<T>.Add(T)

    Not supported.

    ICollection<T>.Clear()

    Not supported.

    ICollection<T>.IsReadOnly

    Gets a value indicating whether the list is read-only. Always returns true.

    ICollection<T>.Remove(T)

    Not supported.

    IEnumerable<T>.GetEnumerator()

    Returns an enumerator that iterates through the list.

    IList<T>.Insert(int, T)

    Not supported.

    IList<T>.this[int]

    Gets the item at the specified index.

    IList<T>.RemoveAt(int)

    Not supported.

    IEnumerable.GetEnumerator()

    Returns an enumerator that iterates through the list.

    © Singulink. All rights reserved.