A collection that contains no duplicate elements. This class models the mathematical Set abstraction, and is the base class for all other Set implementations. The order of elements in a set is dependant on (a)the data-structure implementation, and (b)the implementation of the various Set methods, and thus is not guaranteed.

None of the Set implementations in this library are guranteed to be thread-safe in any way unless wrapped in a SynchronizedSet.

The following table summarizes the binary operators that are supported by the Set class.

OperationDescriptionMethodOperator
Union (OR)Element included in result if it exists in either A OR B.Union()|
Intersection (AND)Element included in result if it exists in both A AND B.InterSect()&
Exclusive Or (XOR)Element included in result if it exists in one, but not both, of A and B.ExclusiveOr()^
Minus (n/a)Take all the elements in A. Now, if any of them exist in B, remove them. Note that unlike the other operators, A - B is not the same as B - A.Minus()-

Namespace: Iesi.Collections.Generic
Assembly: Iesi.Collections (in Iesi.Collections.dll) Version: 1.0.1.0 (3.2.0.4000)

Syntax

C#
[SerializableAttribute]
public abstract class Set<T> : ISet<T>, 
	ICollection<T>, IEnumerable<T>, ISet, ICollection, IEnumerable, 
	ICloneable
Visual Basic
<SerializableAttribute> _
Public MustInherit Class Set(Of T) _
	Implements ISet(Of T), ICollection(Of T),  _
	IEnumerable(Of T), ISet, ICollection, IEnumerable, ICloneable
Visual C++
[SerializableAttribute]
generic<typename T>
public ref class Set abstract : ISet<T>, 
	ICollection<T>, IEnumerable<T>, ISet, ICollection, IEnumerable, 
	ICloneable

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:Iesi.Collections.Generic.Set`1"]

Inheritance Hierarchy

See Also