Set Members
Contains a set, an unordered collection of elements without repetitions. Set values are immutable. See SetContainer for a mutable version of sets.
The following tables list the members exposed by the Set type.
Public Constructors
Name | Description | |
---|---|---|
Set | Overloaded. |
Top
Public Fields
Name | Description | |
---|---|---|
![]() |
Rep | Supports the infrastructure. Do not use. |
Top
Public Properties
Name | Description | |
---|---|---|
![]() |
Count | Delivers the count of elements in the Set. |
![]() |
IsReadOnly | Always returns true. |
Top
Public Methods
(see also Protected Methods)
Name | Description | |
---|---|---|
![]() |
Add | Add an element to the set, delivering a new set. |
![]() |
Clear | Not supported, because set values are read-only. |
![]() |
Contains | Check whether an element is contained in the set. |
![]() |
CopyTo | Copies the elements of the set into the array. |
![]() |
Equals | Overridden. Determines whether the specified compound value is equal to the current compound value. (Inherited from Object) |
![]() |
GetEnumerator | Get the enumeration of elements in the Set. |
![]() |
GetHashCode | Overridden. Serves as a consistent hash function for a compound value type. (Inherited from Object) |
![]() |
GetType | (Inherited from Object) |
![]() |
GroupBy | Overloaded. |
![]() |
GroupJoin | Perform a grouped join of two Sets based on matching keys extracted from the elements. |
![]() |
Intersection | Construct the intersection of this Set with an enumerable value. |
![]() |
Join | Perform an inner join of two Sets based on matching key extracted from the elements. |
![]() ![]() |
Addition | Construct the union of two Sets. |
![]() ![]() |
GreaterThan | Check whether one Set is a proper superset of other Set. |
![]() ![]() |
GreaterThanOrEqual | Check whether one Set is a superset of the other Set. |
![]() ![]() |
LessThan | Check whether one Set is a proper subset of the other Set. |
![]() ![]() |
LessThanOrEqual | Check whether one Set is a subset of the other Set. |
![]() ![]() |
Multiply | Construct the intersection of two Sets. |
![]() |
OrderBy | Orders a Set according to key in ascending order, delivering a Sequence. |
![]() |
OrderByDescending | Orders a Set according to key in descending order. |
![]() |
Remove | Remove an element from the Set, delivering a new Set. |
![]() |
Select | Perform a projection over a Set. |
![]() |
SelectMany | Perform a one to many element projection over a Set. |
![]() |
SubsetOf | Determine whether this Set is a subset of the other Set. |
![]() |
ToArray | Deliver a new array containing the elements of the Set. |
![]() |
ToString | Overridden. Convert the Set value to a readable representation. |
![]() |
Union | Construct the union of this Set with another enumerable. |
![]() |
Where | Filter a Set based on the given predicate. |
Top
Protected Methods
(see also Extension Methods)
Name | Description | |
---|---|---|
![]() |
Finalize | (Inherited from Object) |
![]() |
MemberwiseClone | (Inherited from Object) |
Top
Extension Methods
Name | Description | |
---|---|---|
![]() |
Exists | Indicates whether a predicate is true for at least one element of a collection. (Defined by LogicalOperations.) |
![]() |
Forall | Indicates whether a predicate is true for all elements of a collection. (Defined by LogicalOperations.) |
Top