Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Scholar
Original Poster
#1 Old 7th May 2018 at 8:51 PM
Default What does ^ mean in C#?
The question is as above.

Code:
if (hidden ^ (traitFromDictionary.CasGroup == TraitGroup.None))
            {
                if (hidden && !doFail)
                {
                }
                return false;
            }


What does it mean? What's going on here?
Advertisement
Space Pony
#2 Old 7th May 2018 at 9:32 PM
https://docs.microsoft.com/en-us/do...rs/xor-operator

its the xor operator meanin its an exclusive or
Scholar
Original Poster
#3 Old 7th May 2018 at 9:57 PM
Oh ok. Makes sense. It's just not something you encounter a lot, atleast I didn't. Thanks again
Back to top