Click or drag to resize
SafeHashSetT Class
Thread-safe variant of a generic hash set
Inheritance Hierarchy
SystemObject
  CMS.BaseSafeHashSetT

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 9.0.0
Syntax
C#
public class SafeHashSet<T> : ISet<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T

The SafeHashSetT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Returns the number of elements in a sequence.
Public propertyIsReadOnly
Gets a value indicating whether a collection is read-only.
Top
Methods
  NameDescription
Public methodAdd
Adds the item to the hash set
Public methodClear
Removes all elements from a SafeHashSetT object.
Public methodContains
Returns true if the hash set contains the given value
Public methodCopyTo
Copies the elements of a SafeHashSetT object to an array, starting at the specified array index.
Public methodExceptWith
Removes all elements in the specified collection from the current SafeHashSetT object.
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
Public methodIntersectWith
Modifies the current SafeHashSetT object to contain only elements that are present in that object and in the specified collection.
Public methodIsProperSubsetOf
Determines whether a SafeHashSetT object is a proper subset of the specified collection.
Public methodIsProperSupersetOf
Determines whether a SafeHashSetT object is a proper superset of the specified collection.
Public methodIsSubsetOf
Determines whether a SafeHashSetT object is a subset of the specified collection.
Public methodIsSupersetOf
Determines whether a SafeHashSetT object is a superset of the specified collection.
Public methodOverlaps
Determines whether the current SafeHashSetT object and a specified collection share common elements.
Public methodRemove
Removes the value from the hash set
Public methodSetEquals
Determines whether a SafeHashSetT object and the specified collection contain the same elements.
Public methodSymmetricExceptWith
Modifies the current SafeHashSetT object to contain only elements that are present either in that object or in the specified collection, but not both.
Public methodUnionWith
Modifies the current SafeHashSetT object to contain all elements that are present in itself, the specified collection, or both.
Top
Extension Methods
Remarks
Even for reference types, null is not supported value in the safe hash set.
See Also