Mono Class Library: System.Convert Overview | Members

System.Convert.ToSByte Method

Converts a char to a sbyte . [Edit]

[System.CLSCompliant(false)]
public static sbyte ToSByte (char value)

Parameters

value
The char to be converted interpreted as an unsigned value. [Edit]

Returns

value as a sbyte. [Edit]

Exceptions

TypeReason
OverflowExceptionThe numeric value of value is greater than sbyte.MaxValue. [Edit]

Remarks

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

Requirements

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