Click or drag to resize
Int32ToString Method (String, IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public string ToString(
	string format,
	IFormatProvider provider
)

Parameters

format
Type: SystemString
A standard or custom numeric format string.
provider
Type: SystemIFormatProvider
An object that supplies culture-specific formatting information.

Return Value

Type: String
The string representation of the value of this instance as specified by format and provider.
Exceptions
ExceptionCondition
FormatExceptionformat is invalid or not supported.
See Also