TryParse Method
Definition
- Assemblies
- Cuemon.Kernel.dll
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
inputstringThe string to convert.
resultTResultWhen this method returns, contains the
TResultequivalent of theinput, if the conversion succeeded, ordefaultif the conversion failed.setupAction<TOptions>The
TOptionswhich may be configured.
Returns
- bool
trueifinputwas converted successfully; otherwise,false.