CliResultCreateTDefinition 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 TDefinition Create<TDefinition>()
- TDefinition
-
The definition class for the command. A command builder for this class should be automatically generated by the source generator.
TDefinitionAn instance of the definition class.