Table of Contents

CreateParser Method

Definition

Namespace
Cuemon.Text
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Text/ParserFactory.cs

CreateParser(Func<string, Type, object>)

Creates an IParser implementation from the specified parser.

public static IParser CreateParser(Func<string, Type, object> parser)

Parameters

parser Func<string, Type, object>

The function delegate that does the actual parsing of a string.

Returns

IParser

An IParser implementation.

CreateParser<TResult>(Func<string, TResult>)

Creates an IParser<TResult> implementation from the specified parser.

public static IParser<TResult> CreateParser<TResult>(Func<string, TResult> parser)

Parameters

parser Func<string, TResult>

The function delegate that does the actual parsing of a string.

Returns

IParser<TResult>

An IParser<TResult> implementation.

Type Parameters

TResult

The type of the converted result.