TryGetExtension<T>(out T?)
Gets the object of a given type that a Metalama extension makes available to the current template, if there is one.
Declaration
public static bool TryGetExtension<T>(out T? extension) where T : class, IMetaExtensionParameters
| Type | Name | Description |
|---|---|---|
| T | extension | The object of type |
Returns
| Type | Description |
|---|---|
| bool |
|
Type Parameters
| Name | Description |
|---|---|
| T | The type of the object. |