Exemplo 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);
 }
Exemplo 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);
     }
 }
Exemplo 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));
 }
Exemplo n.º 4
0
 protected abstract bool EqualsRDATA(RR rr);
Exemplo n.º 5
0
 protected abstract bool EqualsRDATA(RR rr);