Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Does Mono evaluate equality of objects differently then MS .NET

$
0
0
Hello. I have a generic container that has a past and present value stored as objects. The container currently has bool types. Past and present are both true. object a = past; object b = present bool same = past == present; in the Visual Studio debugger I see the following in the watch window a = true b = true past == present = true same = false However, if I use .Equals instead of equality I get a = true b = true past == present = true same = true So my question is: Is there a very critical difference between the Mono and MS Runtime? Is there a bug in the watch window of the VS debugger? Thanks!

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>