Formats the value of the current instance using the specified format.
Namespace: SharpAssembler.CoreAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public string ToString( string format, IFormatProvider formatProvider ) |
Visual Basic |
---|
Public Function ToString ( _ format As String, _ formatProvider As IFormatProvider _ ) As String |
Visual C++ |
---|
public: virtual String^ ToString( String^ format, IFormatProvider^ formatProvider ) sealed |
Parameters
- format
- Type: System..::..String
The format to use.
-or-nullNothingnullptra null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.
- formatProvider
- Type: System..::..IFormatProvider
The provider to use to format the value.
-or-nullNothingnullptra null reference (Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.
Return Value
The value of the current instance in the specified format.Implements
IFormattable..::..ToString(String, IFormatProvider)
Contracts
Ensures | ||
---|---|---|
Contract.Result<string>() != null
|