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
CultureInfoConverter.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x0200035D RID: 861
11 {
12 // Token: 0x17000520 RID: 1312
13 // (get) Token: 0x06001675 RID: 5749 RVA: 0x000419F0 File Offset: 0x0003FBF0
14 private string DefaultCultureString
15 {
16 get
17 {
18 return "(Default)";
19 }
20 }
21
22 // Token: 0x06001676 RID: 5750 RVA: 0x00002050 File Offset: 0x00000250
23 protected virtual string GetCultureName(CultureInfo culture)
24 {
25 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
26 }
27
28 // Token: 0x06001677 RID: 5751 RVA: 0x00041A04 File Offset: 0x0003FC04
29 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
30 {
31 if (!true)
32 {
33 }
34 Type type;
35 bool flag = sourceType == type;
36 return true;
37 }
38
39 // Token: 0x06001678 RID: 5752 RVA: 0x00041A28 File Offset: 0x0003FC28
41 {
42 if (!true)
43 {
44 }
45 Type type;
46 bool flag = destinationType == type;
47 return true;
48 }
49
50 // Token: 0x06001679 RID: 5753 RVA: 0x00041A4C File Offset: 0x0003FC4C
51 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
52 {
53 if (value != null)
54 {
55 }
56 return base.ConvertFrom(context, culture, value);
57 }
58
59 // Token: 0x0600167A RID: 5754 RVA: 0x00041B84 File Offset: 0x0003FD84
61 {
62 int num = 1;
63 if (num == 0)
64 {
65 }
66 if (num == 0)
67 {
68 }
69 Type type;
70 bool flag = destinationType == type;
71 int num2 = 1;
72 if (culture != null)
73 {
74 if (num2 == 0)
75 {
76 }
78 }
79 if (value != null)
80 {
81 if ("(Default)" == null)
82 {
83 }
85 }
86 Type type2;
87 if (value == null || ((type2 == null || type2 != null) && (value == null || value != null)))
88 {
89 object obj;
90 return obj;
91 }
93 }
94
95 // Token: 0x0600167B RID: 5755 RVA: 0x00041BF0 File Offset: 0x0003FDF0
97 {
98 int num = 1;
99 if (this._values == null)
100 {
101 if (num == 0)
102 {
103 }
106 int parent_lcid = array.parent_lcid;
107 int parent_lcid2 = array.parent_lcid;
108 int parent_lcid3 = array.parent_lcid;
109 if (parent_lcid2 == 0)
110 {
111 if (parent_lcid2 == 0)
112 {
113 }
115 if (invariantCulture2 == null || invariantCulture2 != null)
116 {
117 }
118 }
119 }
120 throw new ArrayTypeMismatchException();
121 }
122
123 // Token: 0x0600167C RID: 5756 RVA: 0x00041C4C File Offset: 0x0003FE4C
125 {
126 }
127
128 // Token: 0x0600167D RID: 5757 RVA: 0x00041C5C File Offset: 0x0003FE5C
130 {
131 return true;
132 }
133
134 // Token: 0x0600167E RID: 5758 RVA: 0x00041C6C File Offset: 0x0003FE6C
136 {
137 }
138
139 // Token: 0x040011E3 RID: 4579
141
142 // Token: 0x040011E4 RID: 4580
143 private const string DefaultInvariantCultureString = "(Default)";
144
145 // Token: 0x0200035E RID: 862
147 {
148 // Token: 0x0600167F RID: 5759 RVA: 0x00041C80 File Offset: 0x0003FE80
153
154 // Token: 0x06001680 RID: 5760 RVA: 0x00041C9C File Offset: 0x0003FE9C
155 public int Compare(object item1, object item2)
156 {
157 if (item1 != null && item2 != null)
158 {
162 }
163 return 1;
164 }
165
166 // Token: 0x040011E5 RID: 4581
168 }
169
170 // Token: 0x0200035F RID: 863
171 private static class CultureInfoMapper
172 {
173 // Token: 0x06001681 RID: 5761 RVA: 0x00002050 File Offset: 0x00000250
175 {
176 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
177 }
178
179 // Token: 0x06001682 RID: 5762 RVA: 0x00041CD4 File Offset: 0x0003FED4
180 public static string GetCultureInfoName(string cultureInfoDisplayName)
181 {
182 if (!true)
183 {
184 }
185 return 1;
186 }
187
188 // Token: 0x06001683 RID: 5763 RVA: 0x00041CE8 File Offset: 0x0003FEE8
189 // Note: this type is marked as 'beforefieldinit'.
194
195 // Token: 0x040011E6 RID: 4582
197 }
198 }
199}
class f__AnonymousType0<< Count > j__TPar
static readonly Dictionary< string, string > s_cultureInfoNameMap
static string GetCultureInfoName(string cultureInfoDisplayName)
override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
virtual string GetCultureName(CultureInfo culture)
override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
TypeConverter.StandardValuesCollection _values
override bool GetStandardValuesSupported(ITypeDescriptorContext context)
override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
static CultureInfo CurrentCulture
static CultureInfo InvariantCulture