PostSharpAPI ReferencePost­Sharp.​Patterns.​Collections.​AdvicesHash­Set­Dynamic­Advice<T>
Open sandboxFocus

HashSetDynamicAdvice<T> Class

An implementation of IHashSetDynamicAdvice<T> with default behavior (invokes the next advice in the chain).

Inheritance
HashSetDynamicAdvice<T>
Namespace: PostSharp.Patterns.Collections.Advices
Assembly: PostSharp.Patterns.Common.dll
Syntax
public abstract class HashSetDynamicAdvice<T> : DynamicAdvice, IHashSetDynamicAdvice<T>, ICollectionDynamicAdviceBase, IDynamicAdvice, IDynamicInterfaceImplementation
Type Parameters
Name Description
T

Type of items in the AdvisableCollection<T>

Constructors

Name Description
HashSetDynamicAdvice(IQueryInterface)

Initializes a new HashSetDynamicAdvice<T>.

Properties

Name Description
Set

Gets the parent AdvisableHashSet<T>.

Methods

Name Description
AddItem(T, AdviceEnumerator<IHashSetDynamicAdvice<T>>)

Adds an item to the hash set.

ChangeMany(AdviceEnumerator<IHashSetDynamicAdvice<T>>, IList<T>, IList<T>)

Adds and/or removes several items to or from the hash set.

ClearItems(AdviceEnumerator<IHashSetDynamicAdvice<T>>)

Removes all items from the hash set.

IsReadOnly(AdviceEnumerator<ICollectionDynamicAdviceBase>)

Determines whether the advised collection is read-only.

IsSynchronized(AdviceEnumerator<ICollectionDynamicAdviceBase>)

Determines whether the advised collection is synchronized (i.e. thread-safe).

RemoveItem(T, AdviceEnumerator<IHashSetDynamicAdvice<T>>)

Removes an item from the hash set.

ToArray(AdviceEnumerator<IHashSetDynamicAdvice<T>>)

Copies the hash set to an array.