views:

207

answers:

1

Hello

Does anyone have an IsDirty implementation they find particularly useful? Ideally I'd like to support Undo but not have to lug a framework like CSLA in. I'd also prefer an implementation that favors composition over inheritance.

I'm working with WPF with a ViewModel slant right now (INotifyPropertyChanged). The last SO question I've seen is a bit old and doesn't fully address what I'm asking in this one.

Cheers,
Berryl

======= Other Good SO Answers to IsDirty checking =======

I found these after I posted and answered this, here and here

+1  A: 

Here is an implementation.

Hope it helps!

Tony
I had seen this and maybe this is about as good as it gets, but it relies on both inheritance and additional noise in the Property setters. Have you been using this?
Berryl
I played with this a bit. It's actually a nicer simple implementation that I had thought. Thanks!
Berryl