Method IsPositivePowerOfTwo
IsPositivePowerOfTwo(int)
Checks if a value is a positive power of two.
Declaration
public static bool IsPositivePowerOfTwo(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The value to check. |
Returns
| Type | Description |
|---|---|
| bool | True if the value is a positive power of two, false otherwise. |