GetService<T>(bool)
In Metalama, use ServiceProvider.
Declaration
T GetService<T>(bool throwing = true) where T : class, IServiceParameters
| Type | Name | Description |
|---|---|---|
| bool | throwing |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
In Metalama, use ServiceProvider.
T GetService<T>(bool throwing = true) where T : class, IService| Type | Name | Description |
|---|---|---|
| bool | throwing |
| Type | Description |
|---|---|
| T |
| Name | Description |
|---|---|
| T |