diff --git a/PInvoke/DnsApi/WinDns.cs b/PInvoke/DnsApi/WinDns.cs index a0eb8338..e5a71f62 100644 --- a/PInvoke/DnsApi/WinDns.cs +++ b/PInvoke/DnsApi/WinDns.cs @@ -829,6 +829,11 @@ namespace Vanara.PInvoke /// Reserved. Must be 0. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] public uint[] DnsAddrUserDword; + + /// Performs an explicit conversion from to . + /// The DNS address. + /// The resulting instance from the conversion. + public static explicit operator System.Net.IPAddress(DNS_ADDR dnsAddr) => new System.Net.IPAddress(dnsAddr.MaxSa); } /// The DNS_ADDR_ARRAY structure stores an array of IPv4 or IPv6 addresses.