'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function ToString( _ ByVal formattable As IFormattable, _ ByVal format As String _ ) As String
'Usage
Dim formattable As IFormattable Dim format As String Dim value As String value = IFormattableExtension.ToString(formattable, format)
[Extension()] [NotNull()] public static string ToString( IFormattable formattable, string format )
[Extension()] [NotNull()] public: static String^ ToString( IFormattable^ formattable, String^ format )
Parameters
- formattable
- Provides functionality to format the value of an object into a string representation.
- format
- A standard or custom format string (see Remarks).
Return Value
A string representation of value of the current object as specified by format.