Пример #1
0
 public static bool Equals(Record r1, Record r2)
 {
     if (object.ReferenceEquals(r1, r2)) return true;
     if ((object)r1 == null) return false;
     if ((object)r2 == null) return false;
     if (r1.FieldCount != r2.FieldCount) return false;
     for (int i = 0; i < r1.FieldCount; i++)
     {
         if (!object.Equals(r1[i], r2[i])) return false;
     }
     return true;
 }
Пример #2
0
 private void SwapPreviousAndCurrentKeys()
 {
     Record aux = PreviousKey;
     PreviousKey = CurrentKey;
     CurrentKey = aux;
 }
Пример #3
0
 private void ReadCurrentKey()
 {
     if (CurrentKey == null)
     {
         CurrentKey = new Record(this.PivotDef.UnpivotedColumnNames.Length);
     }
     for (int i = 0; i < this.PivotDef.UnpivotedColumnNames.Length; i++)
     {
         this.CurrentKey[i] = Reader[this.KeyFieldsMappings[i]];
     }
 }
Пример #4
0
 public bool Equals(Record other)
 {
     return Equals(this, other);
 }