PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections.​Advices Namespace / IHash­Set­Dynamic­Advice(T) Interface

IHashSetDynamicAdvice<T> Interface

Defines the semantics of a dynamic advice that can be applied to an AdvisableHashSet<T>.

Namespace:  PostSharp.Patterns.Collections.Advices
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: (
public interface IHashSetDynamicAdvice<T> : ICollectionDynamicAdviceBase, 
	IDynamicAdvice, IDynamicInterfaceImplementation

Type Parameters

Type of collection items.

The IHashSetDynamicAdvice<T> type exposes the following members.

Public propertyAdvisedObject
Gets the principal object for which the current object is an indirect interface implementation.
(Inherited from IDynamicInterfaceImplementation.)
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 IDynamicAdvice.)
Public propertyOrder
Gets the execution order of the dynamic advice. See DynamicAdviceOrder.
(Inherited from IDynamicAdvice.)
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 IDynamicAdvice.)
Public methodInitialize
Initializes the current advice.
(Inherited from IDynamicAdvice.)
Public methodIsReadOnly
Determines whether the advised collection is read-only.
(Inherited from ICollectionDynamicAdviceBase.)
Public methodIsSynchronized
Determines whether the advised collection is synchronized (i.e. thread-safe).
(Inherited from ICollectionDynamicAdviceBase.)
Public methodQueryInterface<T>
Gets the implementation of an interface.
(Inherited from IDynamicAdvice.)
Public methodRemoveItem
Removes an item from the hash set.
Public methodToArray
Copies the hash set to an array.
See Also