Mono Class Library: System.Convert Overview | Members

System.Convert.ToUInt16 Method

Converts a short to a ushort . [Edit]

[System.CLSCompliant(false)]
public static ushort ToUInt16 (short value)

Parameters

value
The 16-bit signed integer value to be converted. [Edit]

Returns

value as a 16-bit unsigned integer. [Edit]

Exceptions

TypeReason
OverflowExceptionvalue is less than ushort.MinValue . [Edit]

Remarks

This member is not CLS-compliant. For a CLS-compliant alternative, use Convert.ToInt32(object)(short). [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0