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
NullableConverter.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x020003AA RID: 938
10 {
11 // Token: 0x060018BA RID: 6330 RVA: 0x00045A4C File Offset: 0x00043C4C
23
24 // Token: 0x060018BB RID: 6331 RVA: 0x00045A8C File Offset: 0x00043C8C
25 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
26 {
28 if (!true)
29 {
30 }
31 bool flag = sourceType == type;
32 return true;
33 }
34
35 // Token: 0x060018BC RID: 6332 RVA: 0x00045AC0 File Offset: 0x00043CC0
36 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
37 {
38 if (value != null)
39 {
40 Type type = value.GetType();
42 bool flag = type == type2;
43 return value;
44 }
46 {
47 }
48 return base.ConvertFrom(context, culture, value);
49 }
50
51 // Token: 0x060018BD RID: 6333 RVA: 0x00045AFC File Offset: 0x00043CFC
53 {
55 if (!true)
56 {
57 }
58 bool flag = destinationType == type;
59 return true;
60 }
61
62 // Token: 0x060018BE RID: 6334 RVA: 0x00045B30 File Offset: 0x00043D30
64 {
65 if (!true)
66 {
67 }
69 if (!true)
70 {
71 }
72 bool flag = destinationType == type;
73 if (value != null)
74 {
76 }
77 if (value == null || this.<UnderlyingTypeConverter>k__BackingField != null)
78 {
79 Type type3;
80 bool flag2 = destinationType == type3;
81 }
82 object obj;
83 return obj;
84 }
85
86 // Token: 0x060018BF RID: 6335 RVA: 0x00045B78 File Offset: 0x00043D78
88 {
90 {
91 }
92 object obj;
93 return obj;
94 }
95
96 // Token: 0x060018C0 RID: 6336 RVA: 0x00045B90 File Offset: 0x00043D90
98 {
100 {
101 }
102 bool flag;
103 return flag;
104 }
105
106 // Token: 0x060018C1 RID: 6337 RVA: 0x00045BA8 File Offset: 0x00043DA8
115
116 // Token: 0x060018C2 RID: 6338 RVA: 0x00045BC0 File Offset: 0x00043DC0
117 public override bool GetPropertiesSupported(ITypeDescriptorContext context)
118 {
120 {
121 }
122 bool flag;
123 return flag;
124 }
125
126 // Token: 0x060018C3 RID: 6339 RVA: 0x00045BD8 File Offset: 0x00043DD8
128 {
130 IEnumerator enumerator;
131 if (typeConverter == null || typeConverter == null || enumerator == null || enumerator != null)
132 {
135 }
136 throw new ArrayTypeMismatchException();
137 }
138
139 // Token: 0x060018C4 RID: 6340 RVA: 0x00045C24 File Offset: 0x00043E24
141 {
143 {
144 }
145 bool flag;
146 return flag;
147 }
148
149 // Token: 0x060018C5 RID: 6341 RVA: 0x00045C3C File Offset: 0x00043E3C
151 {
153 {
154 }
155 bool flag;
156 return flag;
157 }
158
159 // Token: 0x060018C6 RID: 6342 RVA: 0x00045C54 File Offset: 0x00043E54
160 public override bool IsValid(ITypeDescriptorContext context, object value)
161 {
162 bool flag;
163 return (this.<UnderlyingTypeConverter>k__BackingField != null && value == null) || flag;
164 }
165
166 // Token: 0x170005A7 RID: 1447
167 // (get) Token: 0x060018C7 RID: 6343 RVA: 0x00045C70 File Offset: 0x00043E70
169 {
171 get
172 {
173 return this.<NullableType>k__BackingField;
174 }
175 }
176
177 // Token: 0x170005A8 RID: 1448
178 // (get) Token: 0x060018C8 RID: 6344 RVA: 0x00045C84 File Offset: 0x00043E84
180 {
182 get
183 {
184 return this.<UnderlyingType>k__BackingField;
185 }
186 }
187
188 // Token: 0x170005A9 RID: 1449
189 // (get) Token: 0x060018C9 RID: 6345 RVA: 0x00045C98 File Offset: 0x00043E98
191 {
193 get
194 {
196 }
197 }
198
199 // Token: 0x0400129A RID: 4762
201 private readonly Type <NullableType>k__BackingField;
202
203 // Token: 0x0400129B RID: 4763
205 private readonly Type <UnderlyingType>k__BackingField;
206
207 // Token: 0x0400129C RID: 4764
209 private readonly TypeConverter <UnderlyingTypeConverter>k__BackingField;
210 }
211}
class f__AnonymousType0<< Count > j__TPar
readonly Type< UnderlyingType > k__BackingField
readonly TypeConverter< UnderlyingTypeConverter > k__BackingField
override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
readonly Type< NullableType > k__BackingField
override bool IsValid(ITypeDescriptorContext context, object value)
override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
override bool GetCreateInstanceSupported(ITypeDescriptorContext context)
override bool GetPropertiesSupported(ITypeDescriptorContext context)
override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
override bool GetStandardValuesSupported(ITypeDescriptorContext context)
static TypeConverter GetConverter(object component)
static Type GetUnderlyingType(Type nullableType)
Definition Nullable.2.cs:9
new Type GetType()
Definition Type.cs:287