Sign in to follow this  

[.net] Compiler quirk?

Recommended Posts

Hey guys I wanted to do: byteVar2 = byteVar1 ^ byteXor but the compiler was wanting me to add an int to byte cast. However, this equivalent code works: byteVar2 = byteVar1 byteVar2 ^= byteXor Don't you think that's a bit strange?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this