6
6
using System . ComponentModel ;
7
7
using System . Diagnostics . CodeAnalysis ;
8
8
using System . IO ;
9
+ #if ! NETSTANDARD1_4
9
10
using System . Runtime . InteropServices ;
11
+ #endif
10
12
using System . Threading ;
11
13
12
14
#nullable enable
@@ -172,6 +174,7 @@ public static void ThrowArgumentOutOfRangeException(string name, object value, s
172
174
throw new ArgumentOutOfRangeException ( name , value , message ) ;
173
175
}
174
176
177
+ #if ! NETSTANDARD1_4
175
178
/// <summary>
176
179
/// Throws a new <see cref="ExternalException"/>.
177
180
/// </summary>
@@ -206,6 +209,7 @@ public static void ThrowExternalException(string message, int error)
206
209
{
207
210
throw new ExternalException ( message , error ) ;
208
211
}
212
+ #endif
209
213
210
214
/// <summary>
211
215
/// Throws a new <see cref="FormatException"/>.
@@ -230,6 +234,7 @@ public static void ThrowFormatException(string message, Exception innerException
230
234
throw new FormatException ( message , innerException ) ;
231
235
}
232
236
237
+ #if ! NETSTANDARD1_4
233
238
/// <summary>
234
239
/// Throws a new <see cref="InsufficientMemoryException"/>.
235
240
/// </summary>
@@ -252,6 +257,7 @@ public static void ThrowInsufficientMemoryException(string message, Exception in
252
257
{
253
258
throw new InsufficientMemoryException ( message , innerException ) ;
254
259
}
260
+ #endif
255
261
256
262
/// <summary>
257
263
/// Throws a new <see cref="InvalidDataException"/>.
@@ -345,6 +351,7 @@ public static void ThrowMissingFieldException(string message, Exception innerExc
345
351
throw new MissingFieldException ( message , innerException ) ;
346
352
}
347
353
354
+ #if ! NETSTANDARD1_4
348
355
/// <summary>
349
356
/// Throws a new <see cref="MissingFieldException"/>.
350
357
/// </summary>
@@ -356,6 +363,7 @@ public static void ThrowMissingFieldException(string className, string fieldName
356
363
{
357
364
throw new MissingFieldException ( className , fieldName ) ;
358
365
}
366
+ #endif
359
367
360
368
/// <summary>
361
369
/// Throws a new <see cref="MissingMemberException"/>.
@@ -380,6 +388,7 @@ public static void ThrowMissingMemberException(string message, Exception innerEx
380
388
throw new MissingMemberException ( message , innerException ) ;
381
389
}
382
390
391
+ #if ! NETSTANDARD1_4
383
392
/// <summary>
384
393
/// Throws a new <see cref="MissingMemberException"/>.
385
394
/// </summary>
@@ -391,6 +400,7 @@ public static void ThrowMissingMemberException(string className, string memberNa
391
400
{
392
401
throw new MissingMemberException ( className , memberName ) ;
393
402
}
403
+ #endif
394
404
395
405
/// <summary>
396
406
/// Throws a new <see cref="MissingMethodException"/>.
@@ -415,6 +425,7 @@ public static void ThrowMissingMethodException(string message, Exception innerEx
415
425
throw new MissingMethodException ( message , innerException ) ;
416
426
}
417
427
428
+ #if ! NETSTANDARD1_4
418
429
/// <summary>
419
430
/// Throws a new <see cref="MissingMethodException"/>.
420
431
/// </summary>
@@ -426,6 +437,7 @@ public static void ThrowMissingMethodException(string className, string methodNa
426
437
{
427
438
throw new MissingMethodException ( className , methodName ) ;
428
439
}
440
+ #endif
429
441
430
442
/// <summary>
431
443
/// Throws a new <see cref="NotSupportedException"/>.
0 commit comments