Table of Contents

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

TDefinition

The 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

definitionType Type

The type of the child definition class.

Returns

IEnumerable<CliCommandBuilder>

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