public static PitData Clone(PitData pData)
 {
     using (MemoryStream stream = new MemoryStream())
     {
         BinaryFormatter formatter = new BinaryFormatter();
         formatter.Serialize(stream, pData);
         stream.Position = 0L;
         return((PitData)formatter.Deserialize(stream));
     }
 }
 public bool Matches(PitData otherPitData)
 {
     if (!((((this._entryCount == otherPitData._entryCount) & (string.Compare(this._apVendor, otherPitData._apVendor) == 0)) & (string.Compare(this._projectName, otherPitData._projectName) == 0)) & (this._reserved == otherPitData._reserved)))
     {
         return(false);
     }
     for (int i = 0; i < this._entryCount; i++)
     {
         PitEntry entry         = this._entries[i];
         PitEntry otherPitEntry = otherPitData._entries[i];
         if (Conversions.ToBoolean(Operators.NotObject(entry.Matches(otherPitEntry))))
         {
             return(false);
         }
     }
     return(true);
 }