public bool Equals(IpV4OptionUnknown other)
 {
     if (other == null || this.OptionType != other.OptionType)
     {
         return(false);
     }
     return(Enumerable.SequenceEqual <byte>((IEnumerable <byte>) this.Data, (IEnumerable <byte>)other.Data));
 }
Example #2
0
        /// <summary>
        /// Two unknown options are equal iff they are of equal type and equal data.
        /// </summary>
        public bool Equals(IpV4OptionUnknown other)
        {
            if (other == null)
            {
                return(false);
            }

            return(OptionType == other.OptionType &&
                   Data.SequenceEqual(other.Data));
        }