Method QueryInterface
QueryInterface<T>(Object, Boolean)
Gets the implementation of a specified interface for the specified object.
Declaration
public static T QueryInterface<T>(object obj, bool throwing = true)
where T : class
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object for which the interface should be queried. |
Boolean | throwing |
|
Returns
Type | Description |
---|---|
T | An object implementing the |
Type Parameters
Name | Description |
---|---|
T | The type of the required interface. |