I have two objects of a class.
I need to compare each field with the other, and if the data is different to make certain actions
class A
{
int id;
string text;
public int Id
{
get { return id; }
}
public string Text
{
get { return text; }
}
}
as I see it:
Dictionary<string, string> list = aObj.different(bObj);
list.Key - name property
list.Value - value of the bObj if it is different
1 Answer