Convert.ToInt64 Method (Boolean)

May 11, 2014

Converts the value of the specified Boolean value to the equivalent 64-bit signed integer.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static long ToInt64(
	bool value
)

Parameters

value
Type: System.Boolean
A Boolean value.

Return Value

Type: System.Int64
The number 1 if value is true; otherwise, 0.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft