In 99% of cases, you probably want to use regular equality =. However, let's say you want to compare two objects (not necessarily instances of classes), which are very complex internally (big/complex graphs, extremely large trees, etc.). If you know that each object is different from the other internally, and just want to perform a quick sanity check on the current instance, physical equality can help there. Usually, just use regular equality unless you come across a situation where it's not enough or, possibly, fast enough.

Regards,

z.

By on 1/27/2008 6:57 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper