Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
 /// <summary>
 /// true iff the fields that are not mutual to all IGMP layers are equal.
 /// </summary>
 protected abstract bool EqualsVersionSpecific(IgmpLayer other);
Beispiel #3
0
 /// <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));
 }