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 | |
---|---|---|
Count | Delivers the count of elements in the SetContainer. | |
IsReadOnly | Always returns false. |
Top
Public Methods
(see also Protected Methods)
Name | Description | |
---|---|---|
Add | Adds an element to this SetContainer. | |
AddRange | Adds the elements of an enumeration to this SetContainer. | |
Clear | Clears all elements in this SetContainer. | |
Contains | Determines whether an element is contained in this SetContainer. | |
CopyTo | Copies the elements of the SetContainer into the array. | |
Equals | (Inherited from Object) | |
GetEnumerator | Get the enumeration of elements in this SetContainer. | |
GetHashCode | (Inherited from Object) | |
GetType | (Inherited from Object) | |
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. | |
Remove | Remove an element from this SetContainer. | |
RemoveRange | Removes the enumerated elements from this SetContainer. | |
ToArray | Deliver a new array containing the elements of the SetContainer. | |
ToSet | Returns a Set value containing the elements of this SetContainer. | |
ToString | Overridden. Converts the SetContainer to a readable representation. | |
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 | |
---|---|---|
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
See Also
Reference
SetContainer Generic Class
Microsoft.Modeling Namespace
Set Generic Class