Table of Contents

Method TryParseUInt64

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

TryParseUInt64(string?)

Parses a ulong from this string, if it holds one.

[Pure]
public static Maybe<ulong> TryParseUInt64(this string? value)

Parameters

value string

The string to parse. A null string gives no value.

Returns

Maybe<ulong>

A Maybe<T> containing the parsed value, and one containing no value if value does not hold one.

Remarks

Wraps TryParse(string, out ulong), so this reads NumberStyles.Integer in the current culture. Use TryParseUInt64(string?, NumberStyles, IFormatProvider) to say otherwise.

TryParseUInt64(string?, NumberStyles, IFormatProvider)

Parses a ulong from this string in the given style and culture, if it holds one.

[Pure]
public static Maybe<ulong> TryParseUInt64(this string? value, NumberStyles styles, IFormatProvider provider)

Parameters

value string

The string to parse. A null string gives no value.

styles NumberStyles

The number styles permitted in value.

provider IFormatProvider

The formatting information of the culture to read with.

Returns

Maybe<ulong>

A Maybe<T> containing the parsed value, and one containing no value if value does not hold one.

Remarks