terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
CultureNotFoundException.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000584 RID: 1412
9 {
10 // Token: 0x06002A9F RID: 10911 RVA: 0x0005C904 File Offset: 0x0005AB04
12 : base("Culture is not supported.")
13 {
14 }
15
16 // Token: 0x06002AA0 RID: 10912 RVA: 0x0005C91C File Offset: 0x0005AB1C
17 public CultureNotFoundException(string paramName, string message)
18 : base(message, paramName)
19 {
20 }
21
22 // Token: 0x06002AA1 RID: 10913 RVA: 0x0005C934 File Offset: 0x0005AB34
24 : base(info, context)
25 {
26 if (!true)
27 {
28 }
29 Type type;
30 if (info.GetValue("InvalidCultureId", type) != null)
31 {
32 }
33 Type type2;
34 object value = info.GetValue("InvalidCultureName", type2);
35 if (value != null)
36 {
38 return;
39 }
40 }
41
42 // Token: 0x06002AA2 RID: 10914 RVA: 0x0005C978 File Offset: 0x0005AB78
44 {
45 base.GetObjectData(info, context);
48 Type type;
49 info.AddValue("InvalidCultureName", invalidCultureName, type);
50 }
51
52 // Token: 0x1700061B RID: 1563
53 // (get) Token: 0x06002AA3 RID: 10915 RVA: 0x0005C9A8 File Offset: 0x0005ABA8
54 public virtual int? InvalidCultureId
55 {
56 get
57 {
58 return this._invalidCultureId;
59 }
60 }
61
62 // Token: 0x1700061C RID: 1564
63 // (get) Token: 0x06002AA4 RID: 10916 RVA: 0x0005C9BC File Offset: 0x0005ABBC
64 public virtual string InvalidCultureName
65 {
66 get
67 {
68 return this._invalidCultureName;
69 }
70 }
71
72 // Token: 0x1700061D RID: 1565
73 // (get) Token: 0x06002AA5 RID: 10917 RVA: 0x0005C9D0 File Offset: 0x0005ABD0
74 private static string DefaultMessage
75 {
76 get
77 {
78 return "Culture is not supported.";
79 }
80 }
81
82 // Token: 0x1700061E RID: 1566
83 // (get) Token: 0x06002AA6 RID: 10918 RVA: 0x0005C9E4 File Offset: 0x0005ABE4
85 {
86 get
87 {
89 string text;
90 return text;
91 }
92 }
93
94 // Token: 0x1700061F RID: 1567
95 // (get) Token: 0x06002AA7 RID: 10919 RVA: 0x0005C9FC File Offset: 0x0005ABFC
96 public override string Message
97 {
98 get
99 {
100 string message = base.Message;
101 string text;
102 if (this._invalidCultureId != null || this._invalidCultureName != null)
103 {
105 text = SR.Format("{0} is an invalid culture identifier.", formatedInvalidCultureId);
106 if (message != null)
107 {
108 string newLine = Environment.NewLine;
109 return message + newLine + text;
110 }
111 }
112 return text;
113 }
114 }
115
116 // Token: 0x040016CD RID: 5837
117 private string _invalidCultureName;
118
119 // Token: 0x040016CE RID: 5838
120 private int? _invalidCultureId;
121 }
122}
class f__AnonymousType0<< Count > j__TPar
static string Format(string resourceFormat, params object[] args)
Definition SR.cs:33
Definition SR.cs:7
static string NewLine
static CultureInfo InvariantCulture
CultureNotFoundException(string paramName, string message)
override void GetObjectData(SerializationInfo info, StreamingContext context)
CultureNotFoundException(SerializationInfo info, StreamingContext context)