Skip to content

ParsedInputContext

A parsed input snapshot for validators; services are injected separately into their signatures.

public sealed class ParsedInputContext

Reads an available command input value without performing another conversion.

public bool TryGetValue<T>(string name, out T? value)
  • T: Expected declared value type.
  • name (string): Parameter name.
  • value (T): Converted value when available.

bool

Gets the resolved route template, or null for unresolved or partial input.

public string? Command { get; }

string

Gets typed global values keyed by their registered names.

public IReadOnlyDictionary<string, InputValue> GlobalValues { get; }

IReadOnlyDictionary<string, InputValue>

Gets original and effective input and the processing mode.

public ArgumentPreprocessingContext Input { get; }

ArgumentPreprocessingContext

Gets parser and earlier-validator diagnostics.

public InputValidationResult Validation { get; }

InputValidationResult

Gets route, option and positional values keyed by their parameter names.

public IReadOnlyDictionary<string, InputValue> Values { get; }

IReadOnlyDictionary<string, InputValue>