using System; using System.Net; namespace DnsClient.Protocol { /// /// Base class for s transporting an . /// /// /// public class AddressRecord : DnsResourceRecord { /// /// Gets the . /// /// /// The address. /// public IPAddress Address { get; } /// /// Initializes a new instance of the class. /// /// The information. /// The address. /// If is null. /// If or is null public AddressRecord(ResourceRecordInfo info, IPAddress address) : base(info) { Address = address ?? throw new ArgumentNullException(nameof(address)); } private protected override string RecordToString() { return Address.ToString(); } } }