You can write a function
class MyClass
{
private int x = 1;
public bool MyCompare ( MyClass mc )
{
return ( x == mc.x );
}
}
MyClass mc1 = new MyClass ();
MyClass mc2 = new MyClass ();
bool b = mc1.MyCompare ( mc2 );
"Avi" <re*********@yahoo.comwrote in message
news:uS**************@TK2MSFTNGP06.phx.gbl:
Hi all,
I have two instances of the same class. Is it possible to compare
private
members of two classes and to come with a list of differences?