title: c# compare the data in two object models
body: <p>I have a dialog, when spawned it gets populated with the data in an object model.  At this point the data is copied and stored in a "backup" object model.  When the user has finished making their changes, and click "ok" to dismiss the dialog, I need a quick way of comparing the backup object model with the live one - if anything is changed I can create the user a new undo state.</p>
  
  <p>I don't want to have to go and write comparison function for every single class in the object model if possible.</p>
  
  <p>If I serialised both object models and they were identical but stored in different memory locations would they be equal?  Does some simple way exist to compare two serialised object models?</p>