/// <summary> /// Determines whether or not the specified resource record is equal to the current instance. /// </summary> /// <param name="rr">The resource record to compare with.</param> /// <returns></returns> public bool Equals(RR rr) { if (object.ReferenceEquals(null, rr)) return false; if (false == GetType().Equals(rr.GetType())) return false; if (false == Base.Equals(rr.Base)) return false; return this.EqualsRDATA(rr); }
private static void ReadRecords(Internal.ByteReader reader, IList <DNS.RR> records, int count) { for (int i = 0; i < count; i++) { DNS.RRBase rrbase = new DNS.RRBase(); ((Internal.IResponseReader)rrbase).ReadResponse(reader); DNS.RR rr = DNS.RR.CreateInstance(rrbase); rr.ReadRDATA(reader); records.Add(rr); } }
/// <summary> /// Determines whether or not the specified resource record is equal to the current instance. /// </summary> /// <param name="rr">The resource record to compare with.</param> /// <returns></returns> public bool Equals(RR rr) { if (object.ReferenceEquals(null, rr)) { return(false); } if (false == GetType().Equals(rr.GetType())) { return(false); } if (false == Base.Equals(rr.Base)) { return(false); } return(this.EqualsRDATA(rr)); }
protected abstract bool EqualsRDATA(RR rr);