Skip to content

UInt32Extensions.SetBit Method ​

Definition ​

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

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

View source

Parameters ​

NameTypeDescription
valueUInt32
indexInt32The zero-based bit index to set.

Returns ​

UInt32

A new uint with the specified bit set.