Method Parse
- Namespace
- Zyl.VectorTraits.ExTypes
- Assembly
- VectorTraits.dll
Parse(string)
Parses a string into a value.
public static ExUInt128 Parse(string s)
Parameters
s
stringA string containing a number to parse.
Returns
- ExUInt128
The result of parsing
s
.
Parse(string, NumberStyles)
Parses a string into a value.
public static ExUInt128 Parse(string s, NumberStyles style)
Parameters
s
stringA string containing a number to parse.
style
NumberStylesA bitwise combination of number styles that can be present in
s
.
Returns
- ExUInt128
The result of parsing
s
.
Parse(string, IFormatProvider?)
Parses a string into a value.
public static ExUInt128 Parse(string s, IFormatProvider? provider)
Parameters
s
stringThe string to parse.
provider
IFormatProviderAn object that provides culture-specific formatting information about
s
.
Returns
- ExUInt128
The result of parsing
s
.
Parse(string, NumberStyles, IFormatProvider?)
Parses a string into a value.
public static ExUInt128 Parse(string s, NumberStyles style, IFormatProvider? provider)
Parameters
s
stringThe string to parse.
style
NumberStylesA bitwise combination of number styles that can be present in
s
.provider
IFormatProviderAn object that provides culture-specific formatting information about
s
.
Returns
- ExUInt128
The result of parsing
s
.
Parse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?)
Parses a span of characters into a value.
public static ExUInt128 Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
Parameters
s
ReadOnlySpan<char>The span of characters to parse.
style
NumberStylesA bitwise combination of number styles that can be present in
s
.provider
IFormatProviderAn object that provides culture-specific formatting information about
s
.
Returns
- ExUInt128
The result of parsing
s
.
Parse(ReadOnlySpan<char>, IFormatProvider?)
Parses a span of characters into a value.
public static ExUInt128 Parse(ReadOnlySpan<char> s, IFormatProvider? provider)
Parameters
s
ReadOnlySpan<char>The span of characters to parse.
provider
IFormatProviderAn object that provides culture-specific formatting information about
s
.
Returns
- ExUInt128
The result of parsing
s
.
Exceptions
- FormatException
s
is not in the correct format.- OverflowException
s
is not representable byTSelf
.
Parse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?)
Parses a span of UTF-8 characters into a value.
public static ExUInt128 Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
Parameters
utf8Text
ReadOnlySpan<byte>The span of UTF-8 characters to parse.
style
NumberStylesA bitwise combination of number styles that can be present in
utf8Text
.provider
IFormatProviderAn object that provides culture-specific formatting information about
utf8Text
.
Returns
- ExUInt128
The result of parsing
utf8Text
.
Exceptions
- ArgumentException
style
is not a supported NumberStyles value.- FormatException
utf8Text
is not in the correct format.- OverflowException
utf8Text
is not representable byTSelf
.
Parse(ReadOnlySpan<byte>, IFormatProvider?)
Parses a span of UTF-8 characters into a value.
public static ExUInt128 Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider)
Parameters
utf8Text
ReadOnlySpan<byte>The span of UTF-8 characters to parse.
provider
IFormatProviderAn object that provides culture-specific formatting information about
utf8Text
.
Returns
- ExUInt128
The result of parsing
utf8Text
.
Exceptions
- FormatException
utf8Text
is not in the correct format.- OverflowException
utf8Text
is not representable byTSelf
.