The SynchronizedSet<(Of <(<'T>)>)> type exposes the following members.

Constructors

  NameDescription
Public methodSynchronizedSet<(Of <(<'T>)>)>
Constructs a thread-safe Set wrapper.

Methods

  NameDescription
Public methodAdd(T)
Adds the specified element to this set if it is not already present.
(Inherited from Set<(Of <(<'T>)>)>.)
Public methodAdd(T)
Adds the specified element to this set if it is not already present.
Public methodAddAll(ICollection<(Of <<'(T>)>>))
Adds all the elements in the specified collection to the set if they are not already present.
(Inherited from Set<(Of <(<'T>)>)>.)
Public methodAddAll(ICollection<(Of <<'(T>)>>))
Adds all the elements in the specified collection to the set if they are not already present.
Public methodClear
Removes all objects from the set.
(Overrides Set<(Of <(<'T>)>)>..::..Clear()()()().)
Public methodClone
Returns a clone of the Set instance.
(Overrides Set<(Of <(<'T>)>)>..::..Clone()()()().)
Public methodContains(T)
Returns trueTruetruetrue (True in Visual Basic) if this set contains the specified element.
(Inherited from Set<(Of <(<'T>)>)>.)
Public methodContains(T)
Returns trueTruetruetrue (True in Visual Basic) if this set contains the specified element.
Public methodContainsAll(ICollection<(Of <<'(T>)>>))
Returns trueTruetruetrue (True in Visual Basic) if the set contains all the elements in the specified collection.
(Inherited from Set<(Of <(<'T>)>)>.)
Public methodContainsAll(ICollection<(Of <<'(T>)>>))
Returns trueTruetruetrue (True in Visual Basic) if the set contains all the elements in the specified collection.
Public methodCopyTo(array<T>[]()[][], Int32)
Copies the elements in the Set to an array. The type of array needs to be compatible with the objects in the Set, obviously.
(Inherited from Set<(Of <(<'T>)>)>.)
Public methodCopyTo(array<T>[]()[][], Int32)
Copies the elements in the Set to an array. The type of array needs to be compatible with the objects in the Set, obviously.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExclusiveOr(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.
(Inherited from Set<(Of <(<'T>)>)>.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Enumeration is, by definition, not thread-safe. Use a lock on the SyncRoot to synchronize the entire enumeration process.
(Overrides Set<(Of <(<'T>)>)>..::..GetEnumerator()()()().)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIntersect(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.
(Inherited from Set<(Of <(<'T>)>)>.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMinus(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.
(Inherited from Set<(Of <(<'T>)>)>.)
Protected methodNonGenericCopyTo
Performs CopyTo when called trhough non-generic ISet (ICollection) interface
(Overrides Set<(Of <(<'T>)>)>..::..NonGenericCopyTo(Array, Int32).)
Protected methodNonGenericExclusiveOr
Performs ExclusiveOr when called trhough non-generic ISet interface
(Inherited from Set<(Of <(<'T>)>)>.)
Protected methodNonGenericIntersect
Performs Intersect when called trhough non-generic ISet interface
(Inherited from Set<(Of <(<'T>)>)>.)
Protected methodNonGenericMinus
Performs Minus when called trhough non-generic ISet interface
(Inherited from Set<(Of <(<'T>)>)>.)
Protected methodNonGenericUnion
Performs Union when called trhough non-generic ISet interface
(Inherited from Set<(Of <(<'T>)>)>.)
Public methodRemove(T)
Removes the specified element from the set.
(Inherited from Set<(Of <(<'T>)>)>.)
Public methodRemove(T)
Removes the specified element from the set.
Public methodRemoveAll(ICollection<(Of <<'(T>)>>))
Remove all the specified elements from this set, if they exist in this set.
(Inherited from Set<(Of <(<'T>)>)>.)
Public methodRemoveAll(ICollection<(Of <<'(T>)>>))
Remove all the specified elements from this set, if they exist in this set.
Public methodRetainAll(ICollection<(Of <<'(T>)>>))
Retains only the elements in this set that are contained in the specified collection.
(Inherited from Set<(Of <(<'T>)>)>.)
Public methodRetainAll(ICollection<(Of <<'(T>)>>))
Retains only the elements in this set that are contained in the specified collection.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnion(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.
(Inherited from Set<(Of <(<'T>)>)>.)

Extension Methods

  NameDescription
Public Extension MethodAs<(Of <<'(T>)>>) (Defined by TypeHelperExtensionMethods.)
Public Extension MethodIsBetween
Apply a "between" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsIn(array<Object>[]()[][])Overloaded.
Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsIn(ICollection)Overloaded.
Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsProxy (Defined by NHibernateProxyHelper.)
Public Extension MethodToTypeParameters (Defined by ReflectHelper.)

Properties

  NameDescription
Public propertyCount
The number of elements contained in this collection.
(Overrides Set<(Of <(<'T>)>)>..::..Count.)
Public propertyIsEmpty
Returns trueTruetruetrue (True in Visual Basic) if this set contains no elements.
(Overrides Set<(Of <(<'T>)>)>..::..IsEmpty.)
Public propertyIsReadOnly
Indicates whether given instace is read-only or not
(Overrides Set<(Of <(<'T>)>)>..::..IsReadOnly.)
Public propertyIsSynchronized
Returns trueTruetruetrue (True in Visual Basic), indicating that this object is thread-safe. The exception to this is enumeration, which is inherently not thread-safe. Use the SyncRoot object to lock this object for the entire duration of the enumeration.
(Overrides Set<(Of <(<'T>)>)>..::..IsSynchronized.)
Public propertySyncRoot
Returns an object that can be used to synchronize the Set between threads.
(Overrides Set<(Of <(<'T>)>)>..::..SyncRoot.)

See Also