Search code examples
c#booleanoperator-overloadingbase-class-library

Where in BCL code the implementation for operators && and & on booleans can be found?


You know, when I read about difference between & and && operators, that can be operates with Boolean, I have become interested in implementation of those operators.

But when I looked at the Boolean type, I did not find it any implementation for those operators.

Can someone help me with that?


Solution

  • I don't think you can find such basic operators in the source code of the BCL. I expect this to compile to direct instructions to the CLR or even more directly.