Table of Contents

CliCommandBuilder.GetChildren Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

GetChildren<TParentDefinition>()

Gets the command builders that are registered as nested/external children of a parent definition.

public static IEnumerable<CliCommandBuilder> GetChildren<TParentDefinition>()

Returns

IEnumerable<CliCommandBuilder>

An enumerable whose elements are the CliCommandBuilder instances registered as nested/external children.

Type Parameters

TParentDefinition

The parent definition class.

GetChildren(Type)

Gets the command builders that are registered as nested/external children of a parent definition.

public static IEnumerable<CliCommandBuilder> GetChildren(Type parentDefinitionType)

Parameters

parentDefinitionType Type

The type of the parent definition class.

Returns

IEnumerable<CliCommandBuilder>

An enumerable whose elements are the CliCommandBuilder instances registered as nested/external children.