PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Collections.​Advices Namespace/Hash­Set­Dynamic­Advice(T) Class

HashSetDynamicAdvice<T> Class

An implementation of IHashSetDynamicAdvice<T> with default behavior (invokes the next advice in the chain).
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.DynamicAdvising.DynamicAdvice
    PostSharp.Patterns.Collections.Advices.HashSetDynamicAdvice<T>

Namespace:  PostSharp.Patterns.Collections.Advices
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
public abstract class HashSetDynamicAdvice<T> : DynamicAdvice, 
	IHashSetDynamicAdvice<T>, ICollectionDynamicAdviceBase, IDynamicAdvice, IDynamicInterfaceImplementation

Type Parameters

T
Type of items in the AdvisableCollection<T>

The HashSetDynamicAdvice<T> type exposes the following members.

Constructors
  NameDescription
Protected methodHashSetDynamicAdvice<T>
Initializes a new HashSetDynamicAdvice<T>.
Properties
  NameDescription
Protected propertyAdvisedObject
Gets the advised object.
(Inherited from DynamicAdvice.)
Public propertyIdentity
Gets the type identity of the advice, which should correspond to the first parameter of the Advise(Type, Func<IQueryInterface, IDynamicAdvice>) method. This is typically the generic type definition of the advice
(Inherited from DynamicAdvice.)
Public propertyOrder
Gets the execution order of the dynamic advice. See DynamicAdviceOrder.
(Inherited from DynamicAdvice.)
Protected propertySet
Gets the parent AdvisableHashSet<T>.
Methods
  NameDescription
Public methodAddItem
Adds an item to the hash set.
Public methodChangeMany
Adds and/or removes several items to or from the hash set.
Public methodClearItems
Removes all items from the hash set.
Public methodDispose
Disposes the current advice. // We don't use IDisposable so that advises are not be cast to IDisposable by default.
(Inherited from DynamicAdvice.)
Public methodInitialize
Initializes the current advice.
(Inherited from DynamicAdvice.)
Public methodIsReadOnly
Determines whether the advised collection is read-only.
Public methodIsSynchronized
Determines whether the advised collection is synchronized (i.e. thread-safe).
Public methodQueryInterface<TInterface> (Inherited from DynamicAdvice.)
Public methodRemoveItem
Removes an item from the hash set.
Public methodToArray
Copies the hash set to an array.
See Also