Edit

Share via


Int128.ToString Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

ToString(IFormatProvider)

Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.

ToString(String)

Converts the numeric value of this instance to its equivalent string representation, using the specified format.

ToString(String, IFormatProvider)

Formats the value of the current instance using the specified format.

ToString()

Returns a string that represents the current object.

ToString(IFormatProvider)

Source:
Int128.cs
Source:
Int128.cs
Source:
Int128.cs

Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.

C#
public string ToString(IFormatProvider? provider);

Parameters

provider
IFormatProvider

An object that supplies culture-specific formatting information.

Returns

The string representation of the value of this instance as specified by provider.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

ToString(String)

Source:
Int128.cs
Source:
Int128.cs
Source:
Int128.cs

Converts the numeric value of this instance to its equivalent string representation, using the specified format.

C#
public string ToString(string? format);

Parameters

format
String

The format to use, or a null reference to use the default format defined for the type of the IFormattable implementation.

Returns

The string representation of the value of this instance as specified by format.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

ToString(String, IFormatProvider)

Source:
Int128.cs
Source:
Int128.cs
Source:
Int128.cs

Formats the value of the current instance using the specified format.

C#
public string ToString(string? format, IFormatProvider? provider);

Parameters

format
String

The format to use, or a null reference to use the default format defined for the type of the IFormattable implementation.

provider
IFormatProvider

An object that supplies culture-specific formatting information.

Returns

The value of the current instance in the specified format.

Implements

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

ToString()

Source:
Int128.cs
Source:
Int128.cs
Source:
Int128.cs

Returns a string that represents the current object.

C#
public override string ToString();

Returns

A string that represents the current object.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10