mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-05-05 00:52:51 +08:00
14 lines
432 B
C#
14 lines
432 B
C#
namespace Spectre.Console.Cli;
|
|
|
|
/// <summary>
|
|
/// Represents a type resolver.
|
|
/// </summary>
|
|
public interface ITypeResolver
|
|
{
|
|
/// <summary>
|
|
/// Resolves an instance of the specified type.
|
|
/// </summary>
|
|
/// <param name="type">The type to resolve.</param>
|
|
/// <returns>An instance of the specified type, or <c>null</c> if no registration for the specified type exists.</returns>
|
|
object? Resolve(Type? type);
|
|
} |