Beispiel #1
0
 internal StandardTrackedObject(StandardChangeTracker tracker, MetaType type, object current, object original)
 {
     if (current == null)
     {
         throw Error.ArgumentNull("current");
     }
     this.tracker     = tracker;
     this.type        = type.GetInheritanceType(current.GetType());
     this.current     = current;
     this.original    = original;
     this.state       = State.PossiblyModified;
     dirtyMemberCache = new BitArray(this.type.DataMembers.Count);
 }
Beispiel #2
0
 internal StandardTrackedObject(StandardChangeTracker tracker, MetaType type, object current, object original, bool isWeaklyTracked)
     : this(tracker, type, current, original)
 {
     this.isWeaklyTracked = isWeaklyTracked;
 }
 internal StandardTrackedObject(StandardChangeTracker tracker, MetaType type, object current, object original, bool isWeaklyTracked)
     : this(tracker, type, current, original) {
     this.isWeaklyTracked = isWeaklyTracked;
 }
 internal StandardTrackedObject(StandardChangeTracker tracker, MetaType type, object current, object original) {
     if (current == null) {
         throw Error.ArgumentNull("current");
     }
     this.tracker = tracker;
     this.type = type.GetInheritanceType(current.GetType());
     this.current = current;
     this.original = original;
     this.state = State.PossiblyModified;
     dirtyMemberCache = new BitArray(this.type.DataMembers.Count);
 }