what happens if "== operator is not defined"?
- by Behrooz
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)?