Partager via


SetContainer Members

Contains a Set. A SetContainer wraps a set value, to provide a mutable version of Set. See Set for more details on the Set type.

The following tables list the members exposed by the SetContainer type.

Public Constructors

  Name Description
  SetContainer Overloaded.  

Top

Public Properties

  Name Description
public property Count Delivers the count of elements in the SetContainer.
public property IsReadOnly Always returns false.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Add Adds an element to this SetContainer.
public method AddRange Adds the elements of an enumeration to this SetContainer.
public method Clear Clears all elements in this SetContainer.
public method Contains Determines whether an element is contained in this SetContainer.
public method CopyTo Copies the elements of the SetContainer into the array.
public method Equals  (Inherited from Object)
public method GetEnumerator Get the enumeration of elements in this SetContainer.
public method GetHashCode  (Inherited from Object)
public method GetType  (Inherited from Object)
public method IntersectionWith Constructs the intersection of this SetContainer with the enumeration. Only those elements that are in this SetContainer and in the enumeration are kept in the SetContainer.
public method Remove Remove an element from this SetContainer.
public method RemoveRange Removes the enumerated elements from this SetContainer.
public method ToArray Deliver a new array containing the elements of the SetContainer.
public method ToSet Returns a Set value containing the elements of this SetContainer.
public method ToString Overridden. Converts the SetContainer to a readable representation.
public method Transform Perform a transformation of the content of the SetContainer. For example, this can be used together with LINQ query expressions, as in sc.Transform(s => from x in s where x > 0 select x)

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

SetContainer Generic Class
Microsoft.Modeling Namespace
Set Generic Class