[]
The read-only list wrapper around the IList<T>.
public class ReadOnlyListWrapper<TItem, TWrapperItem> : IReadOnlyList<TWrapperItem>, IReadOnlyCollection<TWrapperItem>, IEnumerable<TWrapperItem>, IEnumerable where TItem : class where TWrapperItem : class, TItem
Public Class ReadOnlyListWrapper(Of TItem As Class, TWrapperItem As {Class, TItem})
Implements IReadOnlyList(Of TWrapperItem), IReadOnlyCollection(Of TWrapperItem), IEnumerable(Of TWrapperItem), IEnumerable
Name | Description |
---|---|
TItem | The item type of the underlying list. |
TWrapperItem | The item type. |
Name | Description |
---|---|
Count | Gets the number of elements contained in the collection. |
this[int] | Gets or sets the element at the specified index. |
Name | Description |
---|---|
Contains(TWrapperItem) | Determines whether an element is in the collection. |
CopyTo(TItem[], int) | Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array. |
IndexOf(TWrapperItem) | Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection. |