private bool EqualPayload(IcmpRouterAdvertisementLayer other)
 {
     if (other != null)
     {
         return(Enumerable.SequenceEqual <IcmpRouterAdvertisementEntry>((IEnumerable <IcmpRouterAdvertisementEntry>) this.Entries, (IEnumerable <IcmpRouterAdvertisementEntry>)other.Entries));
     }
     return(false);
 }
Exemplo n.º 2
0
        public override ILayer ExtractLayer()
        {
            IcmpRouterAdvertisementLayer advertisementLayer = new IcmpRouterAdvertisementLayer();

            advertisementLayer.Entries  = Enumerable.ToList <IcmpRouterAdvertisementEntry>((IEnumerable <IcmpRouterAdvertisementEntry>) this.Entries).AsReadOnly();
            advertisementLayer.Checksum = new ushort?(this.Checksum);
            advertisementLayer.Lifetime = this.Lifetime;
            return((ILayer)advertisementLayer);
        }
 /// <summary>
 /// True iff the Entries are equal to the other ICMP entries.
 /// </summary>
 private bool EqualPayload(IcmpRouterAdvertisementLayer other)
 {
     return other != null &&
            Entries.SequenceEqual(other.Entries);
 }
 /// <summary>
 /// True iff the Entries are equal to the other ICMP entries.
 /// </summary>
 private bool EqualPayload(IcmpRouterAdvertisementLayer other)
 {
     return(other != null &&
            Entries.SequenceEqual(other.Entries));
 }