ConvertToInt Method | |
Convert boolean to integer value
Namespace:
SOWIData.Helper
Assembly:
SOWIData.Helper (in SOWIData.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static int ToInt(
this bool pBool
)
<ExtensionAttribute>
Public Shared Function ToInt (
pBool As Boolean
) As Integer
Parameters
- pBool
- Type: SystemBoolean
true or false
Return Value
Type:
Int32true equal 1; false equal 0
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Boolean. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also