ToString(string?, IFormatProvider?)
public string ToString(string? format, IFormatProvider? formatProvider)Formats the value of the current instance using the specified format.
Parameters
formatstring?- The format to use. -or- A null reference (
Nothingin Visual Basic) to use the default format defined for the type of theSystem.IFormattableimplementation. formatProviderIFormatProvider?- The provider to use to format the value. -or- A null reference (
Nothingin Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.
Returns
The value of the current instance in the specified format.
