ICollection |
Name | Description |
---|---|
Count (get) | Returns the size of the collection. |
Name | Description |
---|---|
CopyTo | Copies the contents of the collection to an array. |
GetEnumerator | Returns an IEnumerator object. |
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.