Table of Contents

FromObject Method

Definition

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

FromObject()

Creates a parser that converts a string to an Object of a particular type.

public static IConfigurableParser<ObjectFormattingOptions> FromObject()

Returns

IConfigurableParser<ObjectFormattingOptions>

An IConfigurableParser<TOptions> implementation.

Remarks

If the underlying IFormatProvider of FormatProvider is a CultureInfo, then this will be used in the conversion.

Exceptions

NotSupportedException

string cannot be converted to the specified Type.