Skip to content

Int32Extensions.GetBit Method

Definition

Gets the value of the bit at the specified index.

public static bool GetBit(this int value, int index);

View source

Parameters

Name Type Description
value Int32
index Int32 The zero-based bit index. Must be in the range 0 to 31.

Returns

Boolean

true if the bit is set; false otherwise.