/// <summary>
        ///   Returns the textual representation of a record
        /// </summary>
        /// <returns> Textual representation </returns>
        public override string ToString()
        {
            string recordData = RecordDataToString();

            return(Name + " " + TimeToLive + " " + RecordClass.ToShortString() + " " + RecordType.ToShortString() + (String.IsNullOrEmpty(recordData) ? "" : " " + recordData));
        }
Example #2
0
 public override string ToString()
 {
     return(_name + " " + _recordClass.ToShortString() + " " + _recordType.ToShortString());
 }