By alashcraft
via blog.philknows.net
Published: Jun 10 2008 / 11:57
Me either. See here in the C# Language Reference. This means you can overload the operators for your classes. The example on MSDN talks about classes that have a true, false, or null (neither true nor false) state. You could also create a type that can be both true and false.
Comments
ugur.myopenid.com replied ago:
wowww that was cool=))))))))
adiand replied ago:
Cool!?! Can someone explain how this is related to reality... under what circumstances would sensible code define true != !(false) or true == null?
Try replacing "CustomerIsGoodRule cigr = new CustomerIsGoodRule(c);" to "Rule rule = getNextRule();" and read the code again... does it still make sense?
Voters For This Link (13)
Voters Against This Link (1)