what happens if "== operator is not defined"?
Posted
by Behrooz
on Stack Overflow
See other posts from Stack Overflow
or by Behrooz
Published on 2010-03-20T13:47:04Z
Indexed on
2010/03/20
13:51 UTC
Read the original article
Hit count: 343
class a
{
int variable = 0;
}
class b
{
void proc()
{
a ref1 = new a();
a ref2 = new a();
bool cmp1 = ref1 == ref2;//?
bool cmp2 = ref1 == ref1;//?
}
}
does it differ when working with structs? how about marshaled(System.Runtime.Remoting.*) objects(singletons)?
© Stack Overflow or respective owner