What is the difference between IEditableObject and IRevertibleChangeTracking?

Posted by open-collar on Stack Overflow See other posts from Stack Overflow or by open-collar
Published on 2010-06-03T14:41:06Z Indexed on 2010/06/03 21:44 UTC
Read the original article Hit count: 219

What is the difference between IEditableObject and IRevertibleChangeTracking (both from the System.ComponentModel namespace)? It looks as if the first supports explicit transaction whilst the second is more implicit - but the net result is the same. How should I go about implementing this in code? At the moment I do nothing in BeginEdit and call RejectChanges and AcceptChanges in EndEdit and CancelEdit respectively. My problem is that this will also accept the changes made prior to the BeginEdit. Is that really what MS wanted or am I trying to implement two mutually exclusive interfaces?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET