BigInteger.TryFormat Method

Definition

Formats this big integer instance into a span of characters.

C#
public bool TryFormat (Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = default);
C#
public bool TryFormat (Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider provider = default);

Parameters

destination
Span<Char>

The span of characters into which this instance will be written.

charsWritten
Int32

When the method returns, contains the length of the span in number of characters.

format
ReadOnlySpan<Char>

A read-only span of characters that specifies the format for the formatting operation.

provider
IFormatProvider

An object that supplies culture-specific formatting information about value.

Returns

true if the formatting operation succeeds; false otherwise.

Implements

Applies to

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1

See also