Skip to content

BigNumber.TryParse Method

Definition

Namespace: Corvus.Numerics
Assembly: Corvus.Text.Json.dll

Overloads

Method Description
TryParse(string, ref BigNumber) Attempts to parse a string into a BigNumber.
TryParse(string, IFormatProvider, ref BigNumber) Attempts to parse a string into a BigNumber.
TryParse(ReadOnlySpan<char>, IFormatProvider, ref BigNumber) Attempts to parse a span of characters into a BigNumber.
TryParse(ReadOnlySpan<char>, ref BigNumber) Attempts to parse a span of characters into a BigNumber.
TryParse(ReadOnlySpan<byte>, IFormatProvider, ref BigNumber) Attempts to parse a span of characters into a BigNumber.
TryParse(ReadOnlySpan<byte>, ref BigNumber) Attempts to parse a span of characters into a BigNumber.
TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider, ref BigNumber) Attempts to parse a span of characters into a BigNumber.
TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider, ref BigNumber) Attempts to parse UTF-8 bytes into a BigNumber.

TryParse(string, ref BigNumber)

Source: BigNumber.cs

Attempts to parse a string into a BigNumber.

public static bool TryParse(string s, ref BigNumber result)

Parameters

Name Type Description
s string The string to parse.
result ref BigNumber The parsed number.

Returns

bool

true if parsing succeeded; otherwise, false.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

TryParse(string, IFormatProvider, ref BigNumber)

Source: BigNumber.cs

Attempts to parse a string into a BigNumber.

public static bool TryParse(string s, IFormatProvider provider, ref BigNumber result)

Parameters

Name Type Description
s string The string to parse.
provider IFormatProvider Format provider.
result ref BigNumber The parsed number.

Returns

bool

true if parsing succeeded; otherwise, false.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

TryParse(ReadOnlySpan<char>, IFormatProvider, ref BigNumber)

Source: BigNumber.cs

Attempts to parse a span of characters into a BigNumber.

public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider provider, ref BigNumber result)

Parameters

Name Type Description
s ReadOnlySpan<char> The span to parse.
provider IFormatProvider Format provider.
result ref BigNumber The parsed number.

Returns

bool

true if parsing succeeded; otherwise, false.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

TryParse(ReadOnlySpan<char>, ref BigNumber)

Source: BigNumber.cs

Attempts to parse a span of characters into a BigNumber.

public static bool TryParse(ReadOnlySpan<char> s, ref BigNumber result)

Parameters

Name Type Description
s ReadOnlySpan<char> The span to parse.
result ref BigNumber The parsed number.

Returns

bool

true if parsing succeeded; otherwise, false.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

TryParse(ReadOnlySpan<byte>, IFormatProvider, ref BigNumber)

Source: BigNumber.cs

Attempts to parse a span of characters into a BigNumber.

public static bool TryParse(ReadOnlySpan<byte> s, IFormatProvider provider, ref BigNumber result)

Parameters

Name Type Description
s ReadOnlySpan<byte> The span to parse.
provider IFormatProvider Format provider.
result ref BigNumber The parsed number.

Returns

bool

true if parsing succeeded; otherwise, false.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

TryParse(ReadOnlySpan<byte>, ref BigNumber)

Source: BigNumber.cs

Attempts to parse a span of characters into a BigNumber.

public static bool TryParse(ReadOnlySpan<byte> s, ref BigNumber result)

Parameters

Name Type Description
s ReadOnlySpan<byte> The span to parse.
result ref BigNumber The parsed number.

Returns

bool

true if parsing succeeded; otherwise, false.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider, ref BigNumber)

Source: BigNumber.cs

Attempts to parse a span of characters into a BigNumber.

public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider provider, ref BigNumber result)

Parameters

Name Type Description
s ReadOnlySpan<char> The span to parse.
style NumberStyles Number styles.
provider IFormatProvider Format provider.
result ref BigNumber The parsed number.

Returns

bool

true if parsing succeeded; otherwise, false.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider, ref BigNumber)

Source: BigNumber.cs

Attempts to parse UTF-8 bytes into a BigNumber.

public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider provider, ref BigNumber result)

Parameters

Name Type Description
utf8Text ReadOnlySpan<byte> The UTF-8 bytes to parse.
style NumberStyles Number styles.
provider IFormatProvider Format provider.
result ref BigNumber The parsed number.

Returns

bool

true if parsing succeeded; otherwise, false.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue