/// <summary> /// IGMP layers are equal if they have the same message type, query version, similar max response time and the same specific type fields. /// </summary> public bool Equals(IgmpLayer other) { return(other != null && MessageTypeValue == other.MessageTypeValue && QueryVersion == other.QueryVersion && EqualsVersionSpecific(other)); }
/// <summary> /// true iff the fields that are not mutual to all IGMP layers are equal. /// </summary> protected abstract bool EqualsVersionSpecific(IgmpLayer other);
/// <summary> /// true iff the fields that are not mutual to all IGMP layers are equal. /// </summary> protected override sealed bool EqualsVersionSpecific(IgmpLayer other) { return(EqualsVersionSpecific(other as IgmpVersion0Layer)); }