CliResultCreate(Type) Method
Creates a new instance of the command definition class but without any binding.
This is useful for example when you need to instantiate a definition class when using dependency injection.
Namespace: DotMake.CommandLineAssembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 2.6.6
public Object Create(
Type definitionType
)
- definitionType Type
-
The definition class type for the command. A command builder for this class should be automatically generated by the source generator.
ObjectAn instance of the definition class.