Skip to content

Int64Extensions.SetBit Method

Definition

Returns a new long with the bit at the specified index set.

public static long SetBit(this long value, int index);

View source

Parameters

Name Type Description
value Int64
index Int32 The zero-based bit index to set.

Returns

Int64

A new long with the specified bit set.