Click or drag to resize
ConvertToInt16 Method (Boolean)
Converts the specified Boolean value to the equivalent 16-bit signed integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static short ToInt16(
	bool value
)

Parameters

value
Type: SystemBoolean
The Boolean value to convert.

Return Value

Type: Int16
The number 1 if value is true; otherwise, 0.
See Also