Name

CollectionBase

Synopsis

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 MustInherit Class CollectionBase : Implements IList, ICollection, IEnumerable
' Protected Constructors
   Protected Sub New() 
' Public Instance Properties
   Public ReadOnly Property Count As Integer Implements ICollection.Count 
' Protected Instance Properties
   Protected Property InnerList As ArrayList  
   Protected Property List As IList  
' Public Instance Methods
   Public Sub Clear() Implements IList.Clear 
   Public Function GetEnumerator(
        ) As IEnumerator Implements IEnumerable.GetEnumerator 
   Public Sub RemoveAt(
        ByVal index As Integer) Implements IList.RemoveAt 
' Protected Instance Methods
   Overridable Protected Sub OnClear() 
   Overridable Protected Sub OnClearComplete() 
   Overridable Protected Sub OnInsert(ByVal index As Integer, 
        ByVal value As Object) 
   Overridable Protected Sub OnInsertComplete(
        ByVal index As Integer, ByVal value As Object) 
   Overridable Protected Sub OnRemove(ByVal index As Integer, 
        ByVal value As Object) 
   Overridable Protected Sub OnRemoveComplete(
        ByVal index As Integer, ByVal value As Object) 
   Overridable Protected Sub OnSet(ByVal index As Integer, 
        ByVal oldValue As Object, ByVal newValue As Object) 
   Overridable Protected Sub OnSetComplete( ByVal index As Integer, ...

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.