Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ArgumentNullException.cs
Go to the documentation of this file.
4
5namespace System;
6
8[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
10{
12 : base(SR.ArgumentNull_Generic)
13 {
14 base.HResult = -2147467261;
15 }
16
18 : base(SR.ArgumentNull_Generic, paramName)
19 {
20 base.HResult = -2147467261;
21 }
22
24 : base(message, innerException)
25 {
26 base.HResult = -2147467261;
27 }
28
29 public ArgumentNullException(string? paramName, string? message)
30 : base(message, paramName)
31 {
32 base.HResult = -2147467261;
33 }
34
36 : base(info, context)
37 {
38 }
39
40 public static void ThrowIfNull([NotNull] object? argument, [CallerArgumentExpression("argument")] string? paramName = null)
41 {
42 if (argument == null)
43 {
45 }
46 }
47
49 private static void Throw(string paramName)
50 {
52 }
53}
static void Throw(string paramName)
ArgumentNullException(SerializationInfo info, StreamingContext context)
static void ThrowIfNull([NotNull] object? argument, [CallerArgumentExpression("argument")] string? paramName=null)
ArgumentNullException(string? message, Exception? innerException)
ArgumentNullException(string? paramName, string? message)
Definition SR.cs:7