what is the meaning symbol ^ in c#?
like example below.
if(x ^ y)
{
return false;
}
what is the meaning symbol ^ in c#?
like example below.
if(x ^ y)
{
return false;
}
^
is XOR
.
In this case, can be written as:
if(x != y)
which may be easier to understand (if you are unfamiliar with the XOR operator)
^ means XOR:
x ^ y
is True if only (x == true && y == false ) || (x == false && y == true)
.