asp.net.ph

ICollection Interface

System.Collections Namespace


Defines size, enumerators and synchronization methods for all collections.

ICollection Interface Members

Collapse   Properties

Visibility Name Value Type Accessibility
public Count Int32 [ Get ]
public IsSynchronized Boolean [ Get ]
public SyncRoot Object [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public CopyTo ( Array array , Int32 index ) Void

Remarks

The ICollection interface is the base interface for classes in the System.Collections namespace.

The ICollection interface extends IEnumerable.

IDictionary and IList are more specialized interfaces that are based on the ICollection interface.

If neither the IDictionary interface nor the IList interface meet the requirements of the required collection, derive the new collection class from the ICollection interface instead for more flexibility.

Some collections that limit access to their elements, like the Queue class and the Stack class, directly implement the ICollection interface.

See Also

IDictionary Interface   IEnumerable Interface   IList Interface Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note