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
numericTypeTypeThe numeric type to parse the token into. Must implement INumber<TSelf>.
tokenstringThe string representation of the value to parse.
providerIFormatProviderAn optional format provider used to interpret
token.