Table of Contents

TryParse Method

Definition

Namespace
Cuemon.Text
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Text/IConfigurableParser.cs

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

input string

The string to convert.

result TResult

When this method returns, contains the TResult equivalent of the input, if the conversion succeeded, or default if the conversion failed.

setup Action<TOptions>

The TOptions which may be configured.

Returns

bool

true if input was converted successfully; otherwise, false.