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));
 }
예제 #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));
        }