PostSharp 6.4 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections.​Advices Namespace / ICollection­Dynamic­Advice­Factory(TPayload) Interface / ICollection­Dynamic­Advice­Factory(TPayload) Methods / ICollection­Dynamic­Advice­Factory(TPayload).​Create Method

ICollectionDynamicAdviceFactory<TPayload>.Create Method

Creates a new instance implementing ICollectionDynamicAdvice<T>.

Namespace:  PostSharp.Patterns.Collections.Advices
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
IDynamicAdvice Create(
	IDynamicallyAdvisableCollection collection,
	TPayload payload
)

Parameters

collection
Type: PostSharp.Patterns.Collections.Advices.IDynamicallyAdvisableCollection
The collection being advised.
payload
Type: TPayload

Return Value

Type: IDynamicAdvice
See Also