Mono Class Library: System.Convert Overview | Members

System.Convert.ToByte Method

Converts a bool to a byte . [Edit]

public static byte ToByte (bool value)

Parameters

value
The bool value to be converted. [Edit]

Returns

If value equals true, returns 1; if value equals false , returns 0. [Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

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