Click or drag to resize
ConvertToUInt16 Method (SByte)
Converts the value of the specified 8-bit signed integer to the equivalent 16-bit unsigned integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static ushort ToUInt16(
	sbyte value
)

Parameters

value
Type: SystemSByte
The 8-bit signed integer to convert.

Return Value

Type: UInt16
A 16-bit unsigned integer that is equivalent to value.
Exceptions
ExceptionCondition
OverflowExceptionvalue is less than zero.
See Also