Let's say i have a class like that:
class Test { string asd; int dsa; } Later, I create instance of this class, then later it may change values for data members.
I need a simple compare method without comparing all class members.
Something like that:
Test t = new Test(); t.asd = "asd"; SOMETHING SMTH = GetSOMETHINGof(t); a.dsa = 3; if (GetSOMETHINGof(t) != SMTH) //object modified Maybe someone know built-in things that can be used for that? I know i can implement Equal and etc, but that's not what i want. There is too much classes and a lot of members.
I use C# and .net 4.0