Table of Contents

CliBindingContext.BindAll Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

Creates a new instance of the definition class for all contained commands (self and parents) and binds/populates the properties from the parse result.

Note that binding will be done only once per parse result and definition class, so calling this method consecutively for the same parse result and the same definition class will return the cached result.

public object[] BindAll(ParseResult parseResult)

Parameters

parseResult ParseResult

A parse result describing the outcome of the parse operation.

Returns

object[]

An instance of the definition class whose properties were bound/populated from the parse result.