Extension methods for the bool type.
More...
|
static int | ToInt32 (this bool value) |
| Converts the bool value to int. More...
|
|
static uint | ToUInt32 (this bool value) |
| Converts the bool value to uint. More...
|
|
Extension methods for the bool type.
◆ ToInt32()
static int VolumeControl.TypeExtensions.BoolExtensions.ToInt32 |
( |
this bool |
value | ) |
|
|
static |
Converts the bool value to int.
- Parameters
-
value | (implicit) A boolean value. |
- Returns
- 1 when value was
true
; 0 when value was false
.
◆ ToUInt32()
static uint VolumeControl.TypeExtensions.BoolExtensions.ToUInt32 |
( |
this bool |
value | ) |
|
|
static |
Converts the bool value to uint.
- Parameters
-
value | (implicit) A boolean value. |
- Returns
- 1 when value was
true
; 0 when value was false
.
The documentation for this class was generated from the following file:
- /home/runner/work/volume-control/volume-control/VolumeControl.TypeExtensions/BoolExtensions.cs