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
ReferenceConverter.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020003B1 RID: 945
9 {
10 // Token: 0x06001937 RID: 6455 RVA: 0x000469F4 File Offset: 0x00044BF4
12 {
13 this._type = type;
14 }
15
16 // Token: 0x06001938 RID: 6456 RVA: 0x00046A10 File Offset: 0x00044C10
17 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
18 {
19 if (!true)
20 {
21 }
22 Type type;
23 bool flag = sourceType == type;
24 return context != null || base.CanConvertFrom(context, sourceType);
25 }
26
27 // Token: 0x06001939 RID: 6457 RVA: 0x00046A38 File Offset: 0x00044C38
28 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
29 {
30 if (value != null)
31 {
32 }
33 return base.ConvertFrom(context, culture, value);
34 }
35
36 // Token: 0x0600193A RID: 6458 RVA: 0x00046A6C File Offset: 0x00044C6C
38 {
39 if (!true)
40 {
41 }
42 Type type;
43 bool flag = destinationType == type;
44 if (value != null)
45 {
46 if (context != null)
47 {
48 object obj;
49 return obj;
50 }
51 }
52 else if (context == null || context == null || context == null)
53 {
54 }
55 throw new InvalidCastException();
56 }
57
58 // Token: 0x0600193B RID: 6459 RVA: 0x00046AA8 File Offset: 0x00044CA8
60 {
61 if (context != null)
62 {
63 }
64 if (context != null)
65 {
66 if (context == null)
67 {
68 throw new InvalidCastException();
69 }
70 Type type = this._type;
71 }
72 if (context != null)
73 {
74 while (context == null)
75 {
76 }
77 if (context != null)
78 {
79 Type type2 = this._type;
80 long num = 0L;
81 int num2 = 7;
82 if (context != null)
83 {
84 }
85 if (num != 0L)
86 {
87 throw new OutOfMemoryException();
88 }
89 if (num2 == 0)
90 {
91 }
92 }
93 }
94 throw new InvalidCastException();
95 }
96
97 // Token: 0x0600193C RID: 6460 RVA: 0x00046B0C File Offset: 0x00044D0C
99 {
100 return true;
101 }
102
103 // Token: 0x0600193D RID: 6461 RVA: 0x00046B1C File Offset: 0x00044D1C
105 {
106 return true;
107 }
108
109 // Token: 0x0600193E RID: 6462 RVA: 0x00046B2C File Offset: 0x00044D2C
110 protected virtual bool IsValueAllowed(ITypeDescriptorContext context, object value)
111 {
112 return true;
113 }
114
115 // Token: 0x0600193F RID: 6463 RVA: 0x00046B3C File Offset: 0x00044D3C
116 // Note: this type is marked as 'beforefieldinit'.
118 {
119 }
120
121 // Token: 0x040012B9 RID: 4793
122 private static readonly string s_none;
123
124 // Token: 0x040012BA RID: 4794
125 private Type _type;
126
127 // Token: 0x020003B2 RID: 946
129 {
130 // Token: 0x06001940 RID: 6464 RVA: 0x00046B4C File Offset: 0x00044D4C
135
136 // Token: 0x06001941 RID: 6465 RVA: 0x00046B68 File Offset: 0x00044D68
137 public int Compare(object item1, object item2)
138 {
139 string text = this._converter.ConvertToString(item1);
140 string text2 = this._converter.ConvertToString(item2);
142 long num = 0L;
143 return string.Compare(text, text2, num != 0L, invariantCulture);
144 }
145
146 // Token: 0x040012BB RID: 4795
148 }
149 }
150}
class f__AnonymousType0<< Count > j__TPar
virtual bool IsValueAllowed(ITypeDescriptorContext context, object value)
override bool GetStandardValuesSupported(ITypeDescriptorContext context)
override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
static CultureInfo InvariantCulture