Set<T> Class
Public Class Set(Of _
T)
Implements IEnumerable(Of T)
This language is not supported or no code example is available.
public class Set<T> : IEnumerable<T>
This language is not supported or no code example is available.
generic<typename T>
public ref class Set : public IEnumerable<T^>^
This language is not supported or no code example is available.
Type Parameters
- T
Name | Description | |
---|---|---|
Set() | Create a new empty set. | |
Set(IEnumerable<T>) | Create a new set from an enumerable object. | |
Set(params T[]) | Create a set using the supplied elements. |
Name | Description | |
---|---|---|
Add(T) | Add element to set. If already present, does nothing. | |
AddRange(IEnumerable<T>) | Add a range of elements to the set, for example from an array or from a List. | |
Clear() | Clears the set. | |
Contains(T) | Check if the set contains an element. | |
Equals(object) | Determine if two sets are equal, using the obj.Equals() as a comparison operator for each element of the sets. | |
GetEnumerator() | ||
GetHashCode() | ||
Intersect(Set<T>, Set<T>) | Create a new set containing the common elements of two given sets. | |
IntersectWithRange(IEnumerable<T>) | Removes elements that are not present in both this set and the given Range. (an intersection operation). | |
Remove(T) | Remove Element element from set, if it exists, else do nothing. | |
RemoveRange(IEnumerable<T>) | Remove a range of elements, eg. from a list or an array. | |
ToArray() | Create an array containing all the elements of the set. The elements are copied, not only referenced. | |
ToList() | Create an array containing all the elements of the set. The elements are copied, not only referenced. | |
ToString() |
IGS.Genamo.Set<T>