Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ArgumentOutOfRangeException.cs
Go to the documentation of this file.
3
4namespace System;
5
7[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
9{
10 private readonly object _actualValue;
11
12 public override string Message
13 {
14 get
15 {
16 string message = base.Message;
17 if (_actualValue != null)
18 {
20 if (message == null)
21 {
22 return text;
23 }
24 return message + "\r\n" + text;
25 }
26 return message;
27 }
28 }
29
30 public virtual object? ActualValue => _actualValue;
31
33 : base(SR.Arg_ArgumentOutOfRangeException)
34 {
35 base.HResult = -2146233086;
36 }
37
39 : base(SR.Arg_ArgumentOutOfRangeException, paramName)
40 {
41 base.HResult = -2146233086;
42 }
43
44 public ArgumentOutOfRangeException(string? paramName, string? message)
45 : base(message, paramName)
46 {
47 base.HResult = -2146233086;
48 }
49
51 : base(message, innerException)
52 {
53 base.HResult = -2146233086;
54 }
55
56 public ArgumentOutOfRangeException(string? paramName, object? actualValue, string? message)
57 : base(message, paramName)
58 {
60 base.HResult = -2146233086;
61 }
62
64 : base(info, context)
65 {
66 _actualValue = info.GetValue("ActualValue", typeof(object));
67 }
68
70 {
71 base.GetObjectData(info, context);
72 info.AddValue("ActualValue", _actualValue, typeof(object));
73 }
74}
ArgumentOutOfRangeException(string? message, Exception? innerException)
override void GetObjectData(SerializationInfo info, StreamingContext context)
ArgumentOutOfRangeException(string? paramName, object? actualValue, string? message)
ArgumentOutOfRangeException(string? paramName, string? message)
ArgumentOutOfRangeException(SerializationInfo info, StreamingContext context)
static string ArgumentOutOfRange_ActualValue
Definition SR.cs:966
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7