Foley .NET Utilities Class Library

ICollection2 Interface

Represents an enhanced version of the ICollection interface.

For a list of all members of this type, see ICollection2 Members.

[Visual Basic]
Public Interface ICollection2
Implements ICollection, IEnumerable
[C#]
public interface ICollection2 : ICollection, IEnumerable

Remarks

This class is an initial attempt to try to correct how Microsoft defines a collection. Some of the methods in IList really belong in ICollection, since all collections can share these methods and properties, from lists, to sets, to maps.

ICollection implementations fall into three categories: read-only, fixed-size, variable-size. A read-only ICollection cannot be modified. A fixed-size ICollection does not allow the addition or removal of elements, but it allows the modification of existing elements. A variable-size ICollection allows the addition, removal and modification of elements.

Requirements

Namespace: Foley.Utilities.Collections Namespace

Assembly: FoleyUtilities.dll

See Also

ICollection2 Members | Foley.Utilities.Collections Namespace