ICollection

ICollection


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


Public:

Properties:

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

Methods:

NameDescription
 CopyTo Copies the contents of the collection to an array.  
 GetEnumerator Returns an IEnumerator object.  

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 CorLib Overview

Class ICollection Overview

IEnumerator