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