Click or drag to resize

CollectionBase T Methods

The CollectionBase T generic type exposes the following members.

Methods
Name Description
Public method Add
Adds an item to the collection.trigger OnInsert and OnInsertComplete method when set item
Public method Clear
Removes all objects from the System.Collections.CollectionBase instance.
Public method Contains
Determines whether the collection contains a specific item.
Public method CopyTo
Copies the elements of the collection to an array, starting at a particular array index.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetEnumerator
Returns an enumerator that iterates through this instance.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method IndexOf
Returns the zero-based index of the first occurrence of a specified item within the collection.
Public method Insert
Inserts an element into the list at the specified index.
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method OnClear
Performs additional custom processes when clearing the contents of this instance.
Protected method OnClearComplete
Performs additional custom processes after clearing the contents of this instance.
Protected method OnInsert
Performs additional custom processes before inserting a new element into this instance.
Protected method OnInsertComplete
Performs additional custom processes after inserting a new element into this instance.
Protected method OnRemove
Performs additional custom processes when removing an element from this instance.
Protected method OnRemoveComplete
Performs additional custom processes after removing an element from this instance.
Protected method OnSet
Performs additional custom processes before setting a value in this instance.
Protected method OnSetComplete
Performs additional custom processes after setting a value in this instance.
Public method Remove
Removes the first occurrence of a specific object from the collection.
Public method RemoveAt
Removes the element at the specified index of this instance.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
See Also