Skip to content

BigNumber.TryParse Method

Definition

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

Overloads

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

TryParse(string?, BigNumber)

Source: BigNumber.cs

Attempts to parse a string into a BigNumber.

public static bool TryParse(string? s, out BigNumber result)

Parameters

Name Type Description
s string? The string to parse.
result 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?, BigNumber)

Source: BigNumber.cs

Attempts to parse a string into a BigNumber.

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

Parameters

Name Type Description
s string? The string to parse.
provider IFormatProvider? Format provider.
result 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?, BigNumber)

Source: BigNumber.cs

Attempts to parse a span of characters into a BigNumber.

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

Parameters

Name Type Description
s ReadOnlySpan<char> The span to parse.
provider IFormatProvider? Format provider.
result 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>, BigNumber)

Source: BigNumber.cs

Attempts to parse a span of characters into a BigNumber.

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

Parameters

Name Type Description
s ReadOnlySpan<char> The span to parse.
result 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?, BigNumber)

Source: BigNumber.cs

Attempts to parse a span of characters into a BigNumber.

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

Parameters

Name Type Description
s ReadOnlySpan<byte> The span to parse.
provider IFormatProvider? Format provider.
result 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>, BigNumber)

Source: BigNumber.cs

Attempts to parse a span of characters into a BigNumber.

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

Parameters

Name Type Description
s ReadOnlySpan<byte> The span to parse.
result 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?, 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, out BigNumber result)

Parameters

Name Type Description
s ReadOnlySpan<char> The span to parse.
style NumberStyles Number styles.
provider IFormatProvider? Format provider.
result 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?, BigNumber)

Source: BigNumber.cs

Attempts to parse UTF-8 bytes into a BigNumber.

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

Parameters

Name Type Description
utf8Text ReadOnlySpan<byte> The UTF-8 bytes to parse.
style NumberStyles Number styles.
provider IFormatProvider? Format provider.
result 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