Converts the value represented by the current UInt16 instance to a String. The UInt16 type is not CLS compliant. The CLS-compliant alternative is Int16.
[C#] public override string ToString(); [C++] public: override String* ToString(); [JScript] public override function ToString() : String;
[Visual Basic] The UInt16 type cannot be used in Visual Basic.
The result of converting the current UInt16 to a string.
The ToString method converts the value represented by the current UInt16 instance to a String in base 10 with no extra padding.
If this instance is negative, the first charter in the string returned will be "-". No sign character is returned if the number is not negative. The rest of the string returned is made up of characters representing the magnitude of the current instance, not to include leading zero characters ("0").
The following characters are allowable digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.
Overrides ToString.
The output from ToString should be consumable by FromString.
UInt16 Structure | UInt16 Members | System Namespace | UInt16.ToString Overload List | String | Format | Convert