Table of Contents

Method Parse

Namespace
Zyl.VectorTraits.ExTypes
Assembly
VectorTraits.dll

Parse(string)

Parses a string into a value.

public static ExInt128 Parse(string s)

Parameters

s string

A 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

s string

A string containing a number to parse.

style NumberStyles

A 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

s string

The string to parse.

provider IFormatProvider

An 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

s string

The string to parse.

style NumberStyles

A bitwise combination of number styles that can be present in s.

provider IFormatProvider

An 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

s ReadOnlySpan<char>

The span of characters to parse.

style NumberStyles

A bitwise combination of number styles that can be present in s.

provider IFormatProvider

An 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

s ReadOnlySpan<char>

The span of characters to parse.

provider IFormatProvider

An object that provides culture-specific formatting information about s.

Returns

ExInt128

The result of parsing s.

Exceptions

FormatException

s is not in the correct format.

OverflowException

s is not representable by TSelf.

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

utf8Text ReadOnlySpan<byte>

The span of UTF-8 characters to parse.

style NumberStyles

A bitwise combination of number styles that can be present in utf8Text.

provider IFormatProvider

An object that provides culture-specific formatting information about utf8Text.

Returns

ExInt128

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 by TSelf.

Parse(ReadOnlySpan<byte>, IFormatProvider?)

Parses a span of UTF-8 characters into a value.

public static ExInt128 Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider)

Parameters

utf8Text ReadOnlySpan<byte>

The span of UTF-8 characters to parse.

provider IFormatProvider

An object that provides culture-specific formatting information about utf8Text.

Returns

ExInt128

The result of parsing utf8Text.

Exceptions

FormatException

utf8Text is not in the correct format.

OverflowException

utf8Text is not representable by TSelf.