Argument<T>.CustomParser Property

Definition

A custom argument parser.

public:
 property Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ CustomParser { Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ get(); void set(Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ value); };
public Func<System.CommandLine.Parsing.ArgumentResult,T?>? CustomParser { get; set; }
member this.CustomParser : Func<System.CommandLine.Parsing.ArgumentResult, 'T> with get, set
Public Property CustomParser As Func(Of ArgumentResult, T)

Property Value

Remarks

It's invoked when there was parse input provided for given Argument. The same instance can be set as DefaultValueFactory, in such case the delegate is also invoked when no input was provided.

Applies to