Method Resolve
- Namespace
- Ploch.CommandLine.Spectre.DependencyInjection
- Assembly
- Ploch.CommandLine.Spectre.dll
Resolve(Type?)
Resolves a service of the specified type from the service provider.
public object? Resolve(Type? type)
Parameters
typeTypeThe type of service to resolve.
Returns
- object
The resolved service instance, or null if the type is null or the service cannot be resolved.