Adding support for .NET 8.0 LTS, renaming private fields to start with underscore
This commit is contained in:
@@ -177,10 +177,7 @@ namespace System
|
||||
|
||||
if (isValid && nameservers?.Any() == true)
|
||||
{
|
||||
var dnsClientType = Type.GetType("DNS.Client.DnsClient, DNS");
|
||||
if (dnsClientType == null)
|
||||
throw new DllNotFoundException("The DNS NuGet package is required: https://www.nuget.org/packages/DNS/7.0.0");
|
||||
|
||||
var dnsClientType = Type.GetType("DNS.Client.DnsClient, DNS") ?? throw new DllNotFoundException("The DNS NuGet package is required: https://www.nuget.org/packages/DNS/7.0.0");
|
||||
var recordTypeType = Type.GetType("DNS.Protocol.RecordType, DNS");
|
||||
var resolveMethodInfo = dnsClientType.GetMethod("Resolve", new[] { typeof(string), recordTypeType, typeof(CancellationToken) });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user