PostSharpAPI ReferencePost­Sharp.​Patterns.​Dynamic­AdvisingDynamic­AdviceQuery­Interface
Open sandboxFocus

DynamicAdvice.QueryInterface Method

QueryInterface<TInterface>()

Gets the implementation of an interface.

Declaration
public virtual TInterface QueryInterface<TInterface>()
where TInterface : class
Returns
Type Description
TInterface

The implementation of interface T, or null if the advice does not implement this interface.

Type Parameters
Name Description
TInterface
Implements
IDynamicAdvice.QueryInterface<T>()