Method Xor
Xor(ref int, int)
A thread-safe exclusive OR operation on a variable value.
public static int Xor(ref int location1, int value)
Parameters
location1
intA variable containing the first value to perform the XOR operation on. The result is stored in this variable.
value
intThe value to be combined with the value in
location1
Returns
- int
The original value in
location1
Xor(ref uint, uint)
A thread-safe exclusive OR operation on a variable value.
public static uint Xor(ref uint location1, uint value)
Parameters
location1
uintA variable containing the first value to perform the XOR operation on. The result is stored in this variable.
value
uintThe value to be combined with the value in
location1
Returns
- uint
The original value in
location1
Xor(ref long, long)
A thread-safe exclusive OR operation on a variable value.
public static long Xor(ref long location1, long value)
Parameters
location1
longA variable containing the first value to perform the XOR operation on. The result is stored in this variable.
value
longThe value to be combined with the value in
location1
Returns
- long
The original value in
location1
Xor(ref ulong, ulong)
A thread-safe exclusive OR operation on a variable value.
public static ulong Xor(ref ulong location1, ulong value)
Parameters
location1
ulongA variable containing the first value to perform the XOR operation on. The result is stored in this variable.
value
ulongThe value to be combined with the value in
location1
Returns
- ulong
The original value in
location1