Click or drag to resize
ConvertToString Method (Byte, Int32)
Converts the value of an 8-bit unsigned 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(
	byte value,
	int toBase
)

Parameters

value
Type: SystemByte
The 8-bit unsigned 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