Table of Contents

Interface INumericParser

Namespace
MRX.Parsing.Reflection.Abstractions
Assembly
MRX.Parsing.Reflection.dll

Parses string tokens into numeric values of a type determined at runtime.

public interface INumericParser

Methods

Parse(Type, string, IFormatProvider?)

Parses token into a value of the specified numeric type.

object Parse(Type numericType, string token, IFormatProvider? provider = null)

Parameters

numericType Type

The numeric type to parse the token into. Must implement INumber<TSelf>.

token string

The string representation of the value to parse.

provider IFormatProvider

An optional format provider used to interpret token.

Returns

object

The parsed value, boxed as object.