IReadOnlyList<T> interface

Represents a read-only collection of elements that can be accessed by index.

public interface IReadOnlyList<T> : IEnumerable<T>
Parameter Description
T The type of elements in the read-only list.


Name Description
Count { get; } Gets the number of elements contained in the collection.
Item { get; } Gets the element at the specified index in the read-only list.


Name Description
Contains(T) Determines whether the collection contains a specific item.
IndexOf(T) Determines the index of a specific item in the collection.

See Also