UnitToString(String, IFormatProvider) Method
Returns a string representation of this
Unit.
Namespace: DevCase.Core.Math.ScienceAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public string ToString(
string format,
IFormatProvider formatProvider
)
Public Function ToString (
format As String,
formatProvider As IFormatProvider
) As String
Dim instance As Unit
Dim format As String
Dim formatProvider As IFormatProvider
Dim returnValue As String
returnValue = instance.ToString(format,
formatProvider)
public:
virtual String^ ToString(
String^ format,
IFormatProvider^ formatProvider
) sealed
abstract ToString :
format : string *
formatProvider : IFormatProvider -> string
override ToString :
format : string *
formatProvider : IFormatProvider -> string
No code example is currently available or this language may not be supported.
- format String
-
The format to use.
-or- A null reference (Nothing in Visual Basic) to use the default format defined.
- formatProvider IFormatProvider
-
The provider to use to format the value.
-or- A null reference ( in Visual Basic) to obtain the numeric format information from the
current locale setting of the operating system.
String
A
String that represents this
Unit.
IFormattableToString(String, IFormatProvider)
The format string can be either 'UN' (Unit Name) or 'US' (Unit Symbol).