Skip to content

UInt32Extensions.SetBit Method

Definition

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

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

View source

Parameters

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

Returns

UInt32

A new uint with the specified bit set.