Class TypeResolver
Namespace: Coree.NETStandard
Assembly: Coree.NETStandard.dll
Syntax
public sealed class TypeResolver : ITypeResolver, IDisposable
Constructors
| Edit this page View SourceTypeResolver(IServiceProvider)
Declaration
public TypeResolver(IServiceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | provider |
Methods
| Edit this page View SourceDispose()
Declaration
public void Dispose()
Resolve(Type?)
Resolves an instance of the specified type.
Declaration
public object? Resolve(Type? type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type to resolve. |
Returns
Type | Description |
---|---|
object | An instance of the specified type, or |
Implements
Spectre.Console.Cli.ITypeResolver