PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Dynamic­Advising Namespace/IDynamic­Advice Interface/IDynamic­Advice Methods/IDynamic­Advice.​Query­Interface(T) Method

IDynamicAdvice.QueryInterface<T> Method

Gets the implementation of an interface.

Namespace:  PostSharp.Patterns.DynamicAdvising
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
T QueryInterface<T>()
where T : class

Type Parameters

T
Interface type.

Return Value

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