Foley .NET Utilities Class Library

ISet Interface

Represents a collection of objects that contains no duplicate elements.

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

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

Remarks

ISet is a descendant of the ICollection2interface and is the base interface for all sets.

Example: If you have element1 and element12 then element1.Equals(element12) cannot be true inside the set, and if null is allowed then no more than one null element in a set.

It is therefore recommend that the user of the set understand how the objects contained in it are handled by their Equals method.

A set, unless otherwise stated, does not gaurentee it's elements to be contiguous.

Requirements

Namespace: Foley.Utilities.Collections Namespace

Assembly: FoleyUtilities.dll

See Also

ISet Members | Foley.Utilities.Collections Namespace