Пример #1
0
        public override bool Equals(object obj)
        {
            MilFrame o = obj as MilFrame;

            if (o == null)
            {
                return(false);
            }

            return(o.Header == Header &&
                   o.Data == Data);
        }
Пример #2
0
        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);
        }