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.

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 2.6.6
C#
public Object Create(
	Type definitionType
)

Parameters

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

Return Value

Object
An instance of the definition class.

See Also