EyeshotCollection<T> Class

Base collection with virtual methods for handling code when items are added or removed.
Public Class EyeshotCollection(Of  _ 
T
Implements IList(Of T), _ 
IReadOnlyList(Of T)
This language is not supported or no code example is available.
public class EyeshotCollection<T> : IList<T>, 
IReadOnlyList<T>
This language is not supported or no code example is available.

Type Parameters

T

The type of the collection's items.

Name Description
Public property Capacity
Public property Count Gets the number of items actually contained in the collection.
Public property IsReadOnly Gets a value indicating whether the collection is read-only.
Public property Item(int) Gets or sets the item at the specified index.
Top
Methods
 
Name Description
Public method Add(T) Adds one item at the end of this collection.
Public method AddRange(IEnumerable<T>) Adds the items of the specified collection to the end of this collection.
Public method Clear() Removes all items from the collection.
Public method Contains(T) Determines whether an item is in the collection.
Public method CopyTo(T[], int) Copies the entire collection to a compatible one-dimensional array.
Public method Equals(Object) (inherited from Object).
Public method Exists(Predicate<T>) Determines whether this collection contains elements that match the conditions defined by the specified predicate.
Protected method Finalize (inherited from Object).
Public method Find(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire collection.
Public method FindAll(Predicate<T>) Retrieves all the elements that match the conditions defined by the specified predicate.
Public method FindIndex(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire collection.
Public method FindIndex(int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in this collection that extends from the specified index to the last element.
Public method FindIndex(int, int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in this collection that starts at the specified index and contains the specified number of elements.
Public method FindLast(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire collection.
Public method FindLastIndex(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire collection.
Public method FindLastIndex(int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in this collection that extends from the first element to the specified index.
Public method FindLastIndex(int, int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in this collection that contains the specified number of elements and ends at the specified index.
Public method ForEach(Action<T>) Performs the specified action on each element of the collection.
Public method GetEnumerator()
Public method GetHashCode (inherited from Object).
Public method GetType (inherited from Object).
Public method IndexOf(T)
Public method Insert(int, T) Inserts an item into this collection at the specified index.
Public method InsertRange(int, IEnumerable<T>) Inserts the items of a collection into this collection at the specified index.
Protected method MemberwiseClone (inherited from Object).
Public method Remove(T) Removes the first occurrence of a specific item from this collection.
Public method RemoveAll(Predicate<T>) Removes all the elements that match the conditions defined by the specified predicate.
Public method RemoveAt(int) Removes the item at the specified index of this collection.
Public method RemoveRange(int, int) Removes a range of items from this collection.
Public method Reverse() Reverses the order of the items in the entire collection.
Public method Sort(IComparer<T>) Sorts the items in the entire collection.
Public method ToString()
Top

.NET Framework

Supported in: 4.7.2

In this article

Definition