Interface IConfigurableParser<TResult, TOptions>
Defines methods that converts a string to a generic object of TResult.
public interface IConfigurableParser<TResult, out TOptions> where TOptions : class, new()Type Parameters
- TResult
- The type of the converted result. 
- TOptions
- The type of the delegate setup. 
Methods
Parse(string, Action<TOptions>)
Converts the input to its TResult equivalent.
TResult Parse(string input, Action<out TOptions> setup = null)Parameters
Returns
- TResult
- A - TResultequivalent to- input.
TryParse(string, out TResult, Action<TOptions>)
Converts the input to its TResult equivalent. A return input indicates whether the conversion succeeded.
bool TryParse(string input, out TResult result, Action<out TOptions> setup = null)Parameters
- inputstring
- The string to convert. 
- resultTResult
- When this method returns, contains the - TResultequivalent of the- input, if the conversion succeeded, or- defaultif the conversion failed.
- setupAction<TOptions>
- The - TOptionswhich may be configured.
Returns
- bool
- trueif- inputwas converted successfully; otherwise,- false.