Exemplo n.º 1
0
 internal void Add(MemberDiff memberDiff)
 {
     Debug.Assert(!this.disposed, "this.disposed");
     lock (this.gate)
     {
         this.needsRefresh = true;
         this.KeyedDiffs[memberDiff.MemberInfo] = memberDiff;
         this.UpdateSubBuilder(memberDiff.MemberInfo, null);
     }
 }
Exemplo n.º 2
0
 internal void AddLazy(MemberInfo member, DiffBuilder builder)
 {
     Debug.Assert(!this.disposed, "this.disposed");
     lock (this.gate)
     {
         this.needsRefresh       = true;
         this.KeyedDiffs[member] = MemberDiff.Create(member, builder.valueDiff);
         this.UpdateSubBuilder(member, builder);
     }
 }
Exemplo n.º 3
0
 internal void Add(MemberInfo member, object xValue, object yValue)
 {
     Debug.Assert(!this.disposed, "this.disposed");
     lock (this.gate)
     {
         this.needsRefresh       = true;
         this.KeyedDiffs[member] = MemberDiff.Create(member, xValue, yValue);
         this.UpdateSubBuilder(member, null);
     }
 }
Exemplo n.º 4
0
 private static int CompareMemberName(MemberDiff x, MemberDiff y)
 {
     return(string.Compare(x.MemberInfo.Name, y.MemberInfo.Name, StringComparison.Ordinal));
 }