public void AddRange(SnapshotMemberCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add(value[i]);
     }
 }
Esempio n. 2
0
        public void Revert()
        {
            SnapshotMemberCollection members = new SnapshotMemberCollection();

            foreach (ObjectCompareResult result in ObjectCompare.Compare(_mirrorObject, _object))
            {
                members.Add(result.MemberName, result.SourceValue, result.CompareValue);
            }
            foreach (SnapshotMember member in members)
            {
                member.SetMember(_object, SnapshotMember.EnumMemberValue.OldValue);
            }
        }
 public SnapshotMemberCollection(SnapshotMemberCollection value)
 {
     this.AddRange(value);
 }
 public SnapshotMemberEnumerator(SnapshotMemberCollection mappings)
 {
     this.temp           = ((IEnumerable)(mappings));
     this.baseEnumerator = temp.GetEnumerator();
 }