August 2003
Intermediate to advanced
928 pages
32h 1m
English
CollectionBase
This base collection type
must be extended to create
strongly typed collection objects. CollectionBase
provides a modifiable collection. For a read-only collection of
objects, use ReadOnlyCollectionBase. Many special
collection types throughout the .NET framework derive from this
class.
public abstract class CollectionBase : IList, ICollection, IEnumerable { // Protected Constructors protected CollectionBase( ); // Public Instance Properties public int Count{get; } // implements ICollection // Protected Instance Properties protected ArrayList InnerList{get; } protected IList List{get; } // Public Instance Methods public void Clear( ); // implements IList public IEnumerator GetEnumerator( ); // implements IEnumerable public void RemoveAt(intindex); // implements IList // Protected Instance Methods protected virtual void OnClear( ); protected virtual void OnClearComplete( ); protected virtual void OnInsert(intindex, objectvalue); protected virtual void OnInsertComplete(intindex, objectvalue); protected virtual void OnRemove(intindex, objectvalue); protected virtual void OnRemoveComplete(intindex, objectvalue); protected virtual void OnSet(intindex, objectoldValue, objectnewValue); protected virtual void OnSetComplete(intindex, objectoldValue, objectnewValue); protected virtual void OnValidate(objectvalue); }
System.Diagnostics.{CounterCreationDataCollection,
EventLogPermissionEntryCollection,
PerformanceCounterPermissionEntryCollection} ...