Interface ISet<T>
Generic collection that guarantees the uniqueness of its elements, as defined
by some comparer. It also supports basic set operations such as Union, Intersection,
Complement and Exclusive Complement.
Syntax
public interface ISet<T> : ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Methods
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
ExceptWith(IEnumerable<T>)
Declaration
void ExceptWith(IEnumerable<T> other)
Parameters
IntersectWith(IEnumerable<T>)
Declaration
void IntersectWith(IEnumerable<T> other)
Parameters
IsProperSubsetOf(IEnumerable<T>)
Declaration
bool IsProperSubsetOf(IEnumerable<T> other)
Parameters
Returns
IsProperSupersetOf(IEnumerable<T>)
Declaration
bool IsProperSupersetOf(IEnumerable<T> other)
Parameters
Returns
IsSubsetOf(IEnumerable<T>)
Declaration
bool IsSubsetOf(IEnumerable<T> other)
Parameters
Returns
IsSupersetOf(IEnumerable<T>)
Declaration
bool IsSupersetOf(IEnumerable<T> other)
Parameters
Returns
Overlaps(IEnumerable<T>)
Declaration
bool Overlaps(IEnumerable<T> other)
Parameters
Returns
SetEquals(IEnumerable<T>)
Declaration
bool SetEquals(IEnumerable<T> other)
Parameters
Returns
SymmetricExceptWith(IEnumerable<T>)
Declaration
void SymmetricExceptWith(IEnumerable<T> other)
Parameters
UnionWith(IEnumerable<T>)
Declaration
void UnionWith(IEnumerable<T> other)
Parameters
Extension Methods