ConvertToString Method (Int16, Int32) |
Converts the value of a 16-bit signed integer to its equivalent string representation in a specified base.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static string ToString(
short value,
int toBase
)
Parameters
- value
- Type: SystemInt16
The 16-bit signed integer to convert. - toBase
- Type: SystemInt32
The base of the return value, which must be 2, 8, 10, or 16.
Return Value
Type:
StringThe string representation of
value in base
toBase.
Exceptions See Also