CliCommandBuilder.GetParents Method
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
GetParents<TDefinition>()
Gets the command builders that are registered as nested/external parents of a child definition.
public static IEnumerable<CliCommandBuilder> GetParents<TDefinition>()
Returns
- IEnumerable<CliCommandBuilder>
An enumerable whose elements are the CliCommandBuilder instances registered as nested/external parents.
Type Parameters
TDefinitionThe child definition class.
GetParents(Type)
Gets the command builders that are registered as nested/external parents of a child definition.
public static IEnumerable<CliCommandBuilder> GetParents(Type definitionType)
Parameters
definitionTypeTypeThe type of the child definition class.
Returns
- IEnumerable<CliCommandBuilder>
An enumerable whose elements are the CliCommandBuilder instances registered as nested/external parents.