Skip to content

Int32Extensions.LeftMostBit Method ​

Definition ​

Gets the left-most bit (bit 31) of an int.

c#
public static bool LeftMostBit(this int value);

View source

Parameters ​

NameTypeDescription
valueInt32

Returns ​

Boolean

true if the left-most bit is set; false otherwise.