QueryInterface<T>()
Gets the implementation of a specified interface for the current object.
Declaration
T QueryInterface<T>() where T : classReturns
| Type | Description |
|---|---|
| T | An object implementing the |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the required interface. |
Remarks
This method shall return the current object if the type of the current object statically implements the interface. Otherwise,
the method shall return another object that implements T on behalf of the current object. In this case,
the returned object shall implement the IDynamicInterfaceImplementation interface, which allows navigating back to the current object.
User code typically uses the QueryInterface<T>(object, bool) extension method.