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.

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 2.6.6
C#
public TDefinition Create<TDefinition>()

Type Parameters

TDefinition
The definition class for the command. A command builder for this class should be automatically generated by the source generator.

Return Value

TDefinition
An instance of the definition class.

See Also