Table of Contents

CliResult.Contains Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

Contains<TDefinition>()

Checks if the command line input contains the indicated definition class (as self or as a parent).

public bool Contains<TDefinition>()

Returns

bool

Type Parameters

TDefinition

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

Contains(Type)

Checks if the command line input contains the indicated definition class (as self or as a parent).

public bool Contains(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.

Returns

bool