Click or drag to resize
ConvertToString Method (Int16, Int32)
Converts the value of a 16-bit signed integer to its equivalent string representation in a specified base.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: String
The string representation of value in base toBase.
Exceptions
ExceptionCondition
ArgumentExceptiontoBase is not 2, 8, 10, or 16.
See Also