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

IDynamicAdvice.QueryInterface Method

QueryInterface<T>()

Gets the implementation of an interface.

Declaration
T QueryInterface<T>()
where T : class
Returns
Type Description
T

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

Type Parameters
Name Description
T

Interface type.