[]
Represents a collection of unique values of type T.
public class ValueSet<T> : IEnumerable<T>, IEnumerable
| Name | Description |
|---|---|
| T |
| Name | Description |
|---|---|
| ValueSet() | Initializes a new instance of a ValueSet<T>. |
| ValueSet(IEqualityComparer<T>) | Initializes a new instance of a ValueSet<T>. |
| Name | Description |
|---|---|
| Count | Gets the number of objects in the collection. |
| Name | Description |
|---|---|
| Add(T) | Adds a value to the collection if not already present. |
| Clear() | Removes all objects from the collection. |
| Contains(T) | Determines whether the collection contains a specific value. |
| SameValues(T[]) | Determines whether the values in this set are the same as the ones in a given array. |
| Sort() | Sorts the elements in the collection. |
| ToArray() | Creates an array from this collection. |
| ToList() | Creates a List<T> from this collection. |