Converts a numeric value to a String with the specified format string. The UInt16 type is not CLS compliant. The CLS-compliant alternative is Int16.
[C#] public static string Format( ushort value, string format ); [C++] public: static String* Format( unsigned short value, String* format ); [JScript] public static function Format( value : UInt16, format : String ) : String;
[Visual Basic] The UInt16 type cannot be used in Visual Basic.
A string representation of value in the format specified by format.
The Format method converts a numeric value to a string using the format string given by format. If format is null or an empty string, value is formatted as if the string general format ("G") were specified.
The numeric format information is obtained from the current locale (see NumberFormatInfo and CultureInfo for more information on specific numeric and cultures).
UInt16 Structure | UInt16 Members | System Namespace | UInt16.Format Overload List | String