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