Esempio n. 1
1
 /// <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);
 }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
 /// <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));
 }
Esempio n. 4
0
 protected abstract bool EqualsRDATA(RR rr);
Esempio n. 5
0
 protected abstract bool EqualsRDATA(RR rr);