ICollection

ICollection


Provides an interface to access size and enumeration capabilities of collections.


Remarks


Custom collection classes should implement this interface to allow VBCorLib to interact with it in way necessary. Method calls that add a range will usually accept objects implementing this interface.

Classes implementing this interface should also implement the IEnumerable interface to maintain consistency with inherited interfaces. And, the author should consider implementing the NewEnum and GetEnumerator functions in the classes public interface.

See Also

Project VBCorLib Overview | IEnumerator

Public:

Properties:

NameDescription
 Count (get)Returns the size of the collection. 

Methods:

NameDescription
 CopyToCopies the contents of the collection to an array. 
 GetEnumeratorReturns an IEnumerator object.