PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Hash­Set(T) Class / Advisable­Hash­Set(T) Methods
AdvisableHashSet<T> Methods

The AdvisableHashSet<T> generic type exposes the following members.

Methods
  Name Description
Public method Add
Adds an element to the current set and returns a value to indicate if the element was successfully added.
Protected method AddItem
Inserts an element into the underlying set.
Protected method ChangeManyItems
Modifies the underlying set by adding and removing the specified items.
Public method Clear
Removes all items from the ICollection<T>.
Protected method ClearItems
Removes all elements from the underlying set.
Public method Contains
Determines whether the ICollection<T> contains a specific value.
Public method CopyTo(T[])
Copies the elements of an AdvisableHashSet<T> object to an array.
Public method CopyTo(T[], Int32)
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Public method CopyTo(T[], Int32, Int32)
Copies the specified number of elements of an AdvisableHashSet<T> object to an array, starting at the specified array index.
Public method Static member CreateSetComparer
Returns an IEqualityComparer object that can be used for equality testing of a AdvisableHashSet<T> object.
Public method ExceptWith
Removes all elements in the specified collection from the current set.
Protected method ExecuteWithAdvices<TResult, TAction>
Executes an action wrapped by all custom advices added to the current object.
(Inherited from DynamicallyAdvisableObject.)
Public method GetEnumerator
Returns an enumerator that iterates through the AdvisableHashSet<T>.
Public method GetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
(Overrides DynamicallyAdvisableObject.GetObjectData(SerializationInfo, StreamingContext).)
Public method IntersectWith
Modifies the current set so that it contains only elements that are also in a specified collection.
Public method IsProperSubsetOf
Determines whether the current set is a proper (strict) subset of a specified collection.
Public method IsProperSupersetOf
Determines whether the current set is a proper (strict) superset of a specified collection.
Public method IsSubsetOf
Determines whether a set is a subset of a specified collection.
Public method IsSupersetOf
Determines whether the current set is a superset of a specified collection.
Public method OnDeserialization
Runs when the entire object graph has been deserialized.
(Overrides DynamicallyAdvisableObject.OnDeserialization(Object).)
Public method Overlaps
Determines whether the current set overlaps with the specified collection.
Public method Remove
Removes the first occurrence of a specific object from the ICollection<T>.
Protected method RemoveItem
Removes an element from the underlying collection.
Public method RemoveWhere
Removes all elements that match the conditions defined by the specified predicate from a HashSet<T> collection.
Public method SetEquals
Determines whether the current set and the specified collection contain the same elements.
Public method SymmetricExceptWith
Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
Public method TrimExcess
Sets the capacity of a AdvisableHashSet<T> object to the actual number of elements it contains, rounded up to a nearby, implementation-specific value.
Public method UnionWith
Modifies the current set so that it contains all elements that are present in the current set, in the specified collection, or in both.
Extension Methods
  Name Description
Public Extension Method QueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Public Extension Method ToAdvisableCollection<T>
Converts an IEnumerable<T> into an AdvisableCollection<T>.
(Defined by Extensions.)
Public Extension Method ToAdvisableDictionary<T, TKey, TValue>
Converts an IEnumerable<T> into a AdvisableDictionary<TKey, TValue> given a method returning the item key and a method returning the item value.
(Defined by Extensions.)
Public Extension Method ToAdvisableHashSet<T>
Converts an IEnumerable<T> into an AdvisableHashSet<T>.
(Defined by Extensions.)
See Also