Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ this[int bit]

bool System.ComponentModel.InterlockedBitVector32.this[int bit]
getset

Definition at line 10 of file InterlockedBitVector32.cs.

11 {
12 get
13 {
14 return (Volatile.Read(ref _data) & bit) == bit;
15 }
16 set
17 {
18 if (value)
19 {
20 Interlocked.Or(ref _data, bit);
21 }
22 else
23 {
24 Interlocked.And(ref _data, ~bit);
25 }
26 }
27 }
static int And(ref int location1, int value)
static int Or(ref int location1, int value)
static bool Read(ref bool location)
Definition Volatile.cs:67