public override bool Equals(object obj) { MilFrame o = obj as MilFrame; if (o == null) { return(false); } return(o.Header == Header && o.Data == Data); }
protected override ushort PayloadDeserialize(Stream stream, ushort payloadSize) { Data = new List <IMilFrame>(); for (int i = 0; i < payloadSize;) { MilFrame mp = new MilFrame(); UInt16 s = mp.Deserialize(stream); i += s; Data.Add(mp); } return(payloadSize); }