The Set<(Of <(<'T>)>)> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Set<(Of <(<'T>)>)> | Initializes a new instance of the Set<(Of <(<'T>)>)> class |
Methods
Name | Description | |
---|---|---|
Add |
Adds the specified element to this set if it is not already present.
| |
AddAll |
Adds all the elements in the specified collection to the set if they are not already present.
| |
Clear |
Removes all objects from the set.
| |
Clone |
Returns a clone of the Set instance. This will work for derived Set
classes if the derived class implements a constructor that takes no arguments.
| |
Contains |
Returns trueTruetruetrue (True in Visual Basic) if this set contains the specified element.
| |
ContainsAll |
Returns trueTruetruetrue (True in Visual Basic) if the set contains all the elements in the specified collection.
| |
CopyTo |
Copies the elements in the Set to an array. The type of array needs
to be compatible with the objects in the Set, obviously.
| |
Equals | (Inherited from Object.) | |
ExclusiveOr(ISet<(Of <<'(T>)>>)) |
Performs an "exclusive-or" of the two sets, keeping only the elements that
are in one of the sets, but not in both. The original sets are not modified
during this operation. The result set is a Clone() of this set containing
the elements from the exclusive-or operation.
| |
ExclusiveOr(ISet<(Of <<'(T>)>>), ISet<(Of <<'(T>)>>)) |
Performs an "exclusive-or" of the two sets, keeping only the elements that
are in one of the sets, but not in both. The original sets are not modified
during this operation. The result set is a Clone() of one of the sets
(a if it is not nullNothingnullptra null reference (Nothing in Visual Basic)) containing
the elements from the exclusive-or operation.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator |
Gets an enumerator for the elements in the Set.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Intersect(ISet<(Of <<'(T>)>>)) |
Performs an "intersection" of the two sets, where only the elements
that are present in both sets remain. That is, the element is included if it exists in
both sets. The Intersect() operation does not modify the input sets. It returns
a Clone() of this set with the appropriate elements removed.
| |
Intersect(ISet<(Of <<'(T>)>>), ISet<(Of <<'(T>)>>)) |
Performs an "intersection" of the two sets, where only the elements
that are present in both sets remain. That is, the element is included only if it exists in
both a and b. Neither input object is modified by the operation.
The result object is a Clone() of one of the input objects (a if it is not nullNothingnullptra null reference (Nothing in Visual Basic)) containing the
elements from the intersect operation.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Minus(ISet<(Of <<'(T>)>>)) |
Performs a "minus" of set b from set a. This returns a set of all
the elements in set a, removing the elements that are also in set b.
The original sets are not modified during this operation. The result set is a Clone()
of this Set containing the elements from the operation.
| |
Minus(ISet<(Of <<'(T>)>>), ISet<(Of <<'(T>)>>)) |
Performs a "minus" of set b from set a. This returns a set of all
the elements in set a, removing the elements that are also in set b.
The original sets are not modified during this operation. The result set is a Clone()
of set a containing the elements from the operation.
| |
NonGenericCopyTo |
Performs CopyTo when called trhough non-generic ISet (ICollection) interface
| |
NonGenericExclusiveOr |
Performs ExclusiveOr when called trhough non-generic ISet interface
| |
NonGenericIntersect |
Performs Intersect when called trhough non-generic ISet interface
| |
NonGenericMinus |
Performs Minus when called trhough non-generic ISet interface
| |
NonGenericUnion |
Performs Union when called trhough non-generic ISet interface
| |
Remove |
Removes the specified element from the set.
| |
RemoveAll |
Remove all the specified elements from this set, if they exist in this set.
| |
RetainAll |
Retains only the elements in this set that are contained in the specified collection.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Union(ISet<(Of <<'(T>)>>)) |
Performs a "union" of the two sets, where all the elements
in both sets are present. That is, the element is included if it is in either a or b.
Neither this set nor the input set are modified during the operation. The return value
is a Clone() of this set with the extra elements added in.
| |
Union(ISet<(Of <<'(T>)>>), ISet<(Of <<'(T>)>>)) |
Performs a "union" of two sets, where all the elements
in both are present. That is, the element is included if it is in either a or b.
The return value is a Clone() of one of the sets (a if it is not nullNothingnullptra null reference (Nothing in Visual Basic)) with elements of the other set
added in. Neither of the input sets is modified by the operation.
|
Operators
Name | Description | |
---|---|---|
BitwiseAnd |
Performs an "intersection" of the two sets, where only the elements
that are present in both sets remain. That is, the element is included only if it exists in
both a and b. Neither input object is modified by the operation.
The result object is a Clone() of one of the input objects (a if it is not nullNothingnullptra null reference (Nothing in Visual Basic)) containing the
elements from the intersect operation.
| |
BitwiseOr |
Performs a "union" of two sets, where all the elements
in both are present. That is, the element is included if it is in either a or b.
The return value is a Clone() of one of the sets (a if it is not nullNothingnullptra null reference (Nothing in Visual Basic)) with elements of the other set
added in. Neither of the input sets is modified by the operation.
| |
ExclusiveOr |
Performs an "exclusive-or" of the two sets, keeping only the elements that
are in one of the sets, but not in both. The original sets are not modified
during this operation. The result set is a Clone() of one of the sets
(a if it is not nullNothingnullptra null reference (Nothing in Visual Basic)) containing
the elements from the exclusive-or operation.
| |
Subtraction |
Performs a "minus" of set b from set a. This returns a set of all
the elements in set a, removing the elements that are also in set b.
The original sets are not modified during this operation. The result set is a Clone()
of set a containing the elements from the operation.
|
Extension Methods
Name | Description | |
---|---|---|
Any | (Defined by EnumerableExtensions.) | |
As<(Of <<'(T>)>>) | (Defined by TypeHelperExtensionMethods.) | |
First | (Defined by EnumerableExtensions.) | |
FirstOrNull | (Defined by EnumerableExtensions.) | |
ForEach<(Of <<'(T>)>>) | (Defined by TypeHelperExtensionMethods.) | |
GetCollectionElementType | (Defined by ReflectHelper.) | |
IsBetween |
Apply a "between" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsIn(array<Object>[]()[][]) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsIn(ICollection) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsProxy | (Defined by NHibernateProxyHelper.) | |
ToTypeParameters | (Defined by ReflectHelper.) |
Properties
Name | Description | |
---|---|---|
Count |
The number of elements currently contained in this collection.
| |
IsEmpty |
Returns trueTruetruetrue (True in Visual Basic) if this set contains no elements.
| |
IsReadOnly |
Indicates whether the given instance is read-only or not
| |
IsSynchronized |
Returns trueTruetruetrue (True in Visual Basic) if the Set is synchronized across threads. Note that
enumeration is inherently not thread-safe. Use the SyncRoot to lock the
object during enumeration.
| |
SyncRoot |
An object that can be used to synchronize this collection to make it thread-safe.
When implementing this, if your object uses a base object, like an IDictionary,
or anything that has a SyncRoot, return that object instead of "this".
|