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
public field Rep Supports the infrastructure. Do not use.

Top

Public Properties

  Name Description
public property Count Delivers the count of elements in the Set.
public property IsReadOnly Always returns true.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Add Add an element to the set, delivering a new set.
public method Clear Not supported, because set values are read-only.
public method Contains Check whether an element is contained in the set.
public method CopyTo Copies the elements of the set into the array.
public method Equals  Overridden. Determines whether the specified compound value is equal to the current compound value. (Inherited from Object)
public method GetEnumerator Get the enumeration of elements in the Set.
public method GetHashCode  Overridden. Serves as a consistent hash function for a compound value type. (Inherited from Object)
public method GetType  (Inherited from Object)
public method GroupBy Overloaded.  
public method GroupJoin Perform a grouped join of two Sets based on matching keys extracted from the elements.
public method Intersection Construct the intersection of this Set with an enumerable value.
public method Join Perform an inner join of two Sets based on matching key extracted from the elements.
public methodstatic Addition Construct the union of two Sets.
public methodstatic GreaterThan Check whether one Set is a proper superset of other Set.
public methodstatic GreaterThanOrEqual Check whether one Set is a superset of the other Set.
public methodstatic LessThan Check whether one Set is a proper subset of the other Set.
public methodstatic LessThanOrEqual Check whether one Set is a subset of the other Set.
public methodstatic Multiply Construct the intersection of two Sets.
public method OrderBy Orders a Set according to key in ascending order, delivering a Sequence.
public method OrderByDescending Orders a Set according to key in descending order.
public method Remove Remove an element from the Set, delivering a new Set.
public method Select Perform a projection over a Set.
public method SelectMany Perform a one to many element projection over a Set.
public method SubsetOf Determine whether this Set is a subset of the other Set.
public method ToArray Deliver a new array containing the elements of the Set.
public method ToString Overridden. Convert the Set value to a readable representation.
public method Union Construct the union of this Set with another enumerable.
public method Where Filter a Set based on the given predicate.

Top

Protected Methods

(see also Extension Methods)

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Top

Extension Methods

  Name Description
public extension method Exists  Indicates whether a predicate is true for at least one element of a collection. (Defined by LogicalOperations.)
public extension method Forall  Indicates whether a predicate is true for all elements of a collection. (Defined by LogicalOperations.)

Top

See Also

Reference

Set Generic Class
Microsoft.Modeling Namespace
SetContainer