Click or drag to resize
ConvertToByte Method (Char)
Converts the value of the specified Unicode character to the equivalent 8-bit unsigned integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static byte ToByte(
	char value
)

Parameters

value
Type: SystemChar
The Unicode character to convert.

Return Value

Type: Byte
An 8-bit unsigned integer that is equivalent to value.
Exceptions
ExceptionCondition
OverflowExceptionvalue represents a number that is greater than MaxValue.
See Also