@@ -109,7 +109,7 @@ public static async Task ExampleSystemDns() {
109109
110110 public static async Task ExampleTLSA ( ) {
111111 var domains = "_25._tcp.mail.ietf.org" ;
112- foreach ( DnsEndpoint endpoint in Enum . GetValues ( typeof ( DnsEndpoint ) ) ) {
112+ foreach ( DnsEndpoint endpoint in Enum . GetValues < DnsEndpoint > ( ) ) {
113113 HelpersSpectre . AddLine ( "QueryDns" , domains , DnsRecordType . TLSA , endpoint ) ;
114114 var data = await ClientX . QueryDns ( domains , DnsRecordType . TLSA , endpoint ) ;
115115 data . DisplayTable ( ) ;
@@ -118,7 +118,7 @@ public static async Task ExampleTLSA() {
118118
119119 public static async Task ExampleDS ( ) {
120120 const string domain = "evotec.pl" ;
121- foreach ( DnsEndpoint endpoint in Enum . GetValues ( typeof ( DnsEndpoint ) ) ) {
121+ foreach ( DnsEndpoint endpoint in Enum . GetValues < DnsEndpoint > ( ) ) {
122122 HelpersSpectre . AddLine ( "QueryDns" , domain , DnsRecordType . DS , endpoint ) ;
123123 var data = await ClientX . QueryDns ( domain , DnsRecordType . DS , endpoint ) ;
124124 data . DisplayTable ( ) ;
@@ -127,7 +127,7 @@ public static async Task ExampleDS() {
127127
128128 public static async Task ExampleTXTAll ( ) {
129129 var domains = new [ ] { "disneyplus.com" } ;
130- foreach ( DnsEndpoint endpoint in Enum . GetValues ( typeof ( DnsEndpoint ) ) ) {
130+ foreach ( DnsEndpoint endpoint in Enum . GetValues < DnsEndpoint > ( ) ) {
131131 HelpersSpectre . AddLine ( "QueryDns" , "disneyplus.com" , DnsRecordType . TXT , endpoint ) ;
132132 var data = await ClientX . QueryDns ( domains , DnsRecordType . TXT , endpoint ) ;
133133 foreach ( var d in data [ 0 ] . Answers ) {
@@ -197,7 +197,7 @@ public static async Task ExampleSPFQuad() {
197197 Settings . Logger . WriteInformation ( data . Answers [ 0 ] . Data ) ;
198198 }
199199
200- foreach ( DnsEndpoint endpoint in Enum . GetValues ( typeof ( DnsEndpoint ) ) ) {
200+ foreach ( DnsEndpoint endpoint in Enum . GetValues < DnsEndpoint > ( ) ) {
201201 HelpersSpectre . AddLine ( "QueryDns" , "disneyplus.com" , DnsRecordType . SPF , endpoint ) ;
202202 using ( var client1 = new ClientX ( endpoint , DnsSelectionStrategy . First ) {
203203 Debug = false
0 commit comments