PostSharp//API Reference/Post­Sharp.​Patterns.​Dynamic­Advising/IDynamically­Advisable/Query­Advice
Open sandboxFocus

Method QueryAdvice

QueryAdvice<T>()

Queries an interface implemented by a dynamic advice.

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

The interface implementation, or null if the object does not have an advice implementing T.

Type Parameters
Name Description
T

The interface type.