Argument<T>.CustomParser Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.