Table of Contents

Parse Method

Definition

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

Parse<T>(string, Action<TOptions>)

Converts the specified input to an object of T.

T Parse<T>(string input, Action<out TOptions> setup = null)

Parameters

input string

The string to convert.

setup Action<TOptions>

The TOptions which may be configured.

Returns

T

An object of T equivalent to input.

Type Parameters

T

The type of the object to return.

Parse(string, Type, Action<TOptions>)

Converts the specified input to an object of targetType.

object Parse(string input, Type targetType, Action<out TOptions> setup = null)

Parameters

input string

The string to convert.

targetType Type

The type of the object to return.

setup Action<TOptions>

The TOptions which may be configured.

Returns

object

An object of targetType equivalent to input.