Пример #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);
 }
Пример #2
0
 internal StandardTrackedObject(StandardChangeTracker tracker, MetaType type, object current, object original, bool isWeaklyTracked)
     : this(tracker, type, current, original)
 {
     this.isWeaklyTracked = isWeaklyTracked;
 }
Пример #3
0
 internal StandardTrackedObject(StandardChangeTracker tracker, MetaType type, object current, object original, bool isWeaklyTracked)
     : this(tracker, type, current, original) {
     this.isWeaklyTracked = isWeaklyTracked;
 }
Пример #4
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);
 }