@@ -6,7 +6,7 @@ partial class DataReaderExtensions
66 {
77 public static bool ? GetNullableBoolean ( this DbDataReader reader , int ordinal )
88 {
9- #if NET6_0_OR_GREATER
9+ #if NET
1010 ArgumentNullException . ThrowIfNull ( reader ) ;
1111#else
1212 Throw . IfNull ( reader ) ;
@@ -20,7 +20,7 @@ partial class DataReaderExtensions
2020
2121 public static bool ? GetNullableBoolean ( this DbDataReader reader , string name )
2222 {
23- #if NET6_0_OR_GREATER
23+ #if NET
2424 ArgumentNullException . ThrowIfNull ( reader ) ;
2525#else
2626 Throw . IfNull ( reader ) ;
@@ -35,7 +35,7 @@ partial class DataReaderExtensions
3535
3636 public static byte ? GetNullableByte ( this DbDataReader reader , int ordinal )
3737 {
38- #if NET6_0_OR_GREATER
38+ #if NET
3939 ArgumentNullException . ThrowIfNull ( reader ) ;
4040#else
4141 Throw . IfNull ( reader ) ;
@@ -49,7 +49,7 @@ partial class DataReaderExtensions
4949
5050 public static byte ? GetNullableByte ( this DbDataReader reader , string name )
5151 {
52- #if NET6_0_OR_GREATER
52+ #if NET
5353 ArgumentNullException . ThrowIfNull ( reader ) ;
5454#else
5555 Throw . IfNull ( reader ) ;
@@ -64,7 +64,7 @@ partial class DataReaderExtensions
6464
6565 public static char ? GetNullableChar ( this DbDataReader reader , int ordinal )
6666 {
67- #if NET6_0_OR_GREATER
67+ #if NET
6868 ArgumentNullException . ThrowIfNull ( reader ) ;
6969#else
7070 Throw . IfNull ( reader ) ;
@@ -78,7 +78,7 @@ partial class DataReaderExtensions
7878
7979 public static char ? GetNullableChar ( this DbDataReader reader , string name )
8080 {
81- #if NET6_0_OR_GREATER
81+ #if NET
8282 ArgumentNullException . ThrowIfNull ( reader ) ;
8383#else
8484 Throw . IfNull ( reader ) ;
@@ -93,7 +93,7 @@ partial class DataReaderExtensions
9393
9494 public static DateTime ? GetNullableDateTime ( this DbDataReader reader , int ordinal )
9595 {
96- #if NET6_0_OR_GREATER
96+ #if NET
9797 ArgumentNullException . ThrowIfNull ( reader ) ;
9898#else
9999 Throw . IfNull ( reader ) ;
@@ -107,7 +107,7 @@ partial class DataReaderExtensions
107107
108108 public static DateTime ? GetNullableDateTime ( this DbDataReader reader , string name )
109109 {
110- #if NET6_0_OR_GREATER
110+ #if NET
111111 ArgumentNullException . ThrowIfNull ( reader ) ;
112112#else
113113 Throw . IfNull ( reader ) ;
@@ -122,7 +122,7 @@ partial class DataReaderExtensions
122122
123123 public static decimal ? GetNullableDecimal ( this DbDataReader reader , int ordinal )
124124 {
125- #if NET6_0_OR_GREATER
125+ #if NET
126126 ArgumentNullException . ThrowIfNull ( reader ) ;
127127#else
128128 Throw . IfNull ( reader ) ;
@@ -136,7 +136,7 @@ partial class DataReaderExtensions
136136
137137 public static decimal ? GetNullableDecimal ( this DbDataReader reader , string name )
138138 {
139- #if NET6_0_OR_GREATER
139+ #if NET
140140 ArgumentNullException . ThrowIfNull ( reader ) ;
141141#else
142142 Throw . IfNull ( reader ) ;
@@ -151,7 +151,7 @@ partial class DataReaderExtensions
151151
152152 public static double ? GetNullableDouble ( this DbDataReader reader , int ordinal )
153153 {
154- #if NET6_0_OR_GREATER
154+ #if NET
155155 ArgumentNullException . ThrowIfNull ( reader ) ;
156156#else
157157 Throw . IfNull ( reader ) ;
@@ -165,7 +165,7 @@ partial class DataReaderExtensions
165165
166166 public static double ? GetNullableDouble ( this DbDataReader reader , string name )
167167 {
168- #if NET6_0_OR_GREATER
168+ #if NET
169169 ArgumentNullException . ThrowIfNull ( reader ) ;
170170#else
171171 Throw . IfNull ( reader ) ;
@@ -180,7 +180,7 @@ partial class DataReaderExtensions
180180
181181 public static float ? GetNullableFloat ( this DbDataReader reader , int ordinal )
182182 {
183- #if NET6_0_OR_GREATER
183+ #if NET
184184 ArgumentNullException . ThrowIfNull ( reader ) ;
185185#else
186186 Throw . IfNull ( reader ) ;
@@ -194,7 +194,7 @@ partial class DataReaderExtensions
194194
195195 public static float ? GetNullableFloat ( this DbDataReader reader , string name )
196196 {
197- #if NET6_0_OR_GREATER
197+ #if NET
198198 ArgumentNullException . ThrowIfNull ( reader ) ;
199199#else
200200 Throw . IfNull ( reader ) ;
@@ -209,7 +209,7 @@ partial class DataReaderExtensions
209209
210210 public static Guid ? GetNullableGuid ( this DbDataReader reader , int ordinal )
211211 {
212- #if NET6_0_OR_GREATER
212+ #if NET
213213 ArgumentNullException . ThrowIfNull ( reader ) ;
214214#else
215215 Throw . IfNull ( reader ) ;
@@ -223,7 +223,7 @@ partial class DataReaderExtensions
223223
224224 public static Guid ? GetNullableGuid ( this DbDataReader reader , string name )
225225 {
226- #if NET6_0_OR_GREATER
226+ #if NET
227227 ArgumentNullException . ThrowIfNull ( reader ) ;
228228#else
229229 Throw . IfNull ( reader ) ;
@@ -238,7 +238,7 @@ partial class DataReaderExtensions
238238
239239 public static short ? GetNullableInt16 ( this DbDataReader reader , int ordinal )
240240 {
241- #if NET6_0_OR_GREATER
241+ #if NET
242242 ArgumentNullException . ThrowIfNull ( reader ) ;
243243#else
244244 Throw . IfNull ( reader ) ;
@@ -252,7 +252,7 @@ partial class DataReaderExtensions
252252
253253 public static short ? GetNullableInt16 ( this DbDataReader reader , string name )
254254 {
255- #if NET6_0_OR_GREATER
255+ #if NET
256256 ArgumentNullException . ThrowIfNull ( reader ) ;
257257#else
258258 Throw . IfNull ( reader ) ;
@@ -267,7 +267,7 @@ partial class DataReaderExtensions
267267
268268 public static int ? GetNullableInt32 ( this DbDataReader reader , int ordinal )
269269 {
270- #if NET6_0_OR_GREATER
270+ #if NET
271271 ArgumentNullException . ThrowIfNull ( reader ) ;
272272#else
273273 Throw . IfNull ( reader ) ;
@@ -281,7 +281,7 @@ partial class DataReaderExtensions
281281
282282 public static int ? GetNullableInt32 ( this DbDataReader reader , string name )
283283 {
284- #if NET6_0_OR_GREATER
284+ #if NET
285285 ArgumentNullException . ThrowIfNull ( reader ) ;
286286#else
287287 Throw . IfNull ( reader ) ;
@@ -296,7 +296,7 @@ partial class DataReaderExtensions
296296
297297 public static long ? GetNullableInt64 ( this DbDataReader reader , int ordinal )
298298 {
299- #if NET6_0_OR_GREATER
299+ #if NET
300300 ArgumentNullException . ThrowIfNull ( reader ) ;
301301#else
302302 Throw . IfNull ( reader ) ;
@@ -310,7 +310,7 @@ partial class DataReaderExtensions
310310
311311 public static long ? GetNullableInt64 ( this DbDataReader reader , string name )
312312 {
313- #if NET6_0_OR_GREATER
313+ #if NET
314314 ArgumentNullException . ThrowIfNull ( reader ) ;
315315#else
316316 Throw . IfNull ( reader ) ;
@@ -325,7 +325,7 @@ partial class DataReaderExtensions
325325
326326 public static string ? GetNullableString ( this DbDataReader reader , int ordinal )
327327 {
328- #if NET6_0_OR_GREATER
328+ #if NET
329329 ArgumentNullException . ThrowIfNull ( reader ) ;
330330#else
331331 Throw . IfNull ( reader ) ;
@@ -339,7 +339,7 @@ partial class DataReaderExtensions
339339
340340 public static string ? GetNullableString ( this DbDataReader reader , string name )
341341 {
342- #if NET6_0_OR_GREATER
342+ #if NET
343343 ArgumentNullException . ThrowIfNull ( reader ) ;
344344#else
345345 Throw . IfNull ( reader ) ;
0 commit comments