Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SwitchExpressionException.cs
Go to the documentation of this file.
2
4
6[TypeForwardedFrom("System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
8{
9 public object? UnmatchedValue { get; }
10
11 public override string Message
12 {
13 get
14 {
15 if (UnmatchedValue == null)
16 {
17 return base.Message;
18 }
21 }
22 }
23
25 : base(SR.Arg_SwitchExpressionException)
26 {
27 }
28
30 : base(SR.Arg_SwitchExpressionException, innerException)
31 {
32 }
33
39
41 : base(info, context)
42 {
43 UnmatchedValue = info.GetValue("UnmatchedValue", typeof(object));
44 }
45
46 public SwitchExpressionException(string? message)
47 : base(message)
48 {
49 }
50
52 : base(message, innerException)
53 {
54 }
55
57 {
58 base.GetObjectData(info, context);
59 info.AddValue("UnmatchedValue", UnmatchedValue, typeof(object));
60 }
61}
override void GetObjectData(SerializationInfo info, StreamingContext context)
SwitchExpressionException(string? message, Exception? innerException)
SwitchExpressionException(SerializationInfo info, StreamingContext context)
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string SwitchExpressionException_UnmatchedValue
Definition SR.cs:2166
Definition SR.cs:7