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

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.dll
Syntax
public interface IHashSetDynamicAdvice<T> : ICollectionDynamicAdviceBase, IDynamicAdvice, IDynamicInterfaceImplementation
Type Parameters
Name Description
T

Type of collection items.

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.

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

Removes an item from the hash set.

ToArray(AdviceEnumerator<IHashSetDynamicAdvice<T>>)

Copies the hash set to an array.