Skip to content

UInt64Extensions.SetBit Method

Definition

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

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

View source

Parameters

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

Returns

UInt64

A new ulong with the specified bit set.