ReadOnlyListT

ReadOnlyList<T> class

Provides an abstract base class for a strongly typed read-only list.

public class ReadOnlyList<T> : IList, IList<T>, IReadOnlyList<T>
Parameter Description
T The type of the element.

Properties

Name Description
Count { get; } Gets the number of elements contained in the collection.
IsReadOnly { get; } Gets a value indicating whether the collection is read-only.
Item { get; } Gets the element at the specified index in the collection.

Methods

Name Description
Contains(T) Determines whether the collection contains a specific item.
Contains(TagCategory) Determines whether the collection contains a TagCategory item.
GetEnumerator() Returns an enumerator that iterates through a collection.
IndexOf(T) Determines the index of a specific item in the collection.

See Also