PostSharp//API Reference/Post­Sharp.​Patterns.​Dynamic­Advising/IQuery­Interface
Open sandboxFocus

Interface IQueryInterface

Interface implemented by objects that can implement interface dynamically by composition, without implementing the interface directly at MSIL level. The QueryInterface<T>() method must then be used instead of a normal cast.

Namespace: PostSharp.Patterns.DynamicAdvising
Assembly: PostSharp.Patterns.Common.dll
Syntax
public interface IQueryInterface

Methods

Name Description
QueryInterface<T>()

Gets the implementation of a specified interface for the current object.