GetService(Type)
Gets the implementation of a given service type.
Declaration
public object? GetService(Type serviceType)Parameters
| Type | Name | Description |
|---|---|---|
| Type | serviceType |
Returns
| Type | Description |
|---|---|
| object |
GetService<T>()
Declaration
public T? GetService<T>() where T : class, TBaseReturns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |