ReadOnlyListBase<T> Class
Definition
Base class implementing a read-only list collection.
public class ReadOnlyListBase<T>
Remarks
This class should be considered internal to the TreeDataGrid package and is not intended for use outside of this package.
Provides a base implementation for read-only list collections, implementing both System.Collections.Generic.IReadOnlyList<T> and System.Collections.IList interfaces.
Methods
| Name | Description |
|---|---|
| GetEnumerator | Returns an enumerator that iterates through the collection. |
GetEnumerator Method
Returns an enumerator that iterates through the collection.
public System.Collections.Generic.IEnumerator<T> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<T>
An enumerator that can be used to iterate through the collection.
Properties
Count Property
Gets the number of elements in the collection.
public int Count { get; set; }
Item Property
public T Item { get; set; }