BoolExtensions.ToInt(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static int ToInt (this bool flag);
static member ToInt : bool -> int
<Extension()>
Public Function ToInt (flag As Boolean) As Integer
Parameters
- flag
- Boolean
The input value to convert.
Returns
1 if flag
is true
, 0 otherwise.
Remarks
This method does not contain branching instructions.