Monday, April 23, 2012

Check if a property value has changed on POCO

I have a POCO that is updated every N seconds. The problem I have is that not all properties may have changed since the last update.



I need to know which properties have changed since the last update so I can log the changes. I could do this by keeping a copy of the POCO from the previous update and performing a comparison each time and then maybe firing an event for each property change.



Does anyone have a better solution that I could use here?





No comments:

Post a Comment