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
XmlListConverter.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Xml.Schema
6{
7 // Token: 0x02000167 RID: 359
9 {
10 // Token: 0x06000C5E RID: 3166 RVA: 0x00020864 File Offset: 0x0001EA64
12 {
13 if (!true)
14 {
15 }
16 base..ctor(atomicConverter);
18 }
19
20 // Token: 0x06000C5F RID: 3167 RVA: 0x00020884 File Offset: 0x0001EA84
29
30 // Token: 0x06000C60 RID: 3168 RVA: 0x000208A4 File Offset: 0x0001EAA4
32 {
33 if (!true)
34 {
35 }
36 base..ctor(schemaType);
37 }
38
39 // Token: 0x06000C61 RID: 3169 RVA: 0x000208BC File Offset: 0x0001EABC
41 {
42 int num = 1;
43 if (num == 0)
44 {
45 }
46 if (num == 0)
47 {
48 }
49 throw new InvalidCastException();
50 }
51
52 // Token: 0x06000C62 RID: 3170 RVA: 0x000208D8 File Offset: 0x0001EAD8
54 {
55 if (value != null)
56 {
57 }
58 return "value";
59 }
60
61 // Token: 0x06000C63 RID: 3171 RVA: 0x000208F0 File Offset: 0x0001EAF0
63 {
64 Type type = value.GetType();
66 if (value != null)
67 {
68 bool flag = clrTypeDefault == clrTypeDefault;
69 bool flag2 = type == clrTypeDefault;
70 return value;
71 }
72 Type type2;
74 throw new InvalidCastException();
75 }
76
77 // Token: 0x06000C64 RID: 3172 RVA: 0x00020994 File Offset: 0x0001EB94
78 private bool IsListType(Type type)
79 {
80 if (!true)
81 {
82 }
83 return true;
84 }
85
86 // Token: 0x06000C65 RID: 3173 RVA: 0x000209AC File Offset: 0x0001EBAC
88 {
90 {
91 }
94 long num = 0L;
95 int num2 = 7;
96 if (num == 0L)
97 {
98 if (num2 == 0)
99 {
100 }
101 throw new InvalidCastException();
102 }
103 throw new OutOfMemoryException();
104 }
105
106 // Token: 0x06000C66 RID: 3174 RVA: 0x000209F4 File Offset: 0x0001EBF4
108 {
109 if (list != null)
110 {
111 }
113 if (xmlValueConverter == null || xmlValueConverter != null)
114 {
116 long num = 0L;
117 if (list != null)
118 {
119 }
120 if (num != 0L)
121 {
122 throw new OutOfMemoryException();
123 }
124 }
125 throw new ArrayTypeMismatchException();
126 }
127
128 // Token: 0x06000C67 RID: 3175 RVA: 0x00020A40 File Offset: 0x0001EC40
130 {
131 /*
132An exception occurred when decompiling this method (06000C67)
133
134ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.List`1<System.String> System.Xml.Schema.XmlListConverter::StringAsList(System.String)
135
136 ---> System.Exception: Basic block has to end with unconditional control flow.
137{
138 IL_0003:
139 stloc:string[](var_0_09, call:string[](XmlConvert::SplitString, ldloc:string(value)))
140}
141
142 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
143 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
144 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
145 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
146 --- End of inner exception stack trace ---
147 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
148 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
149*/;
150 }
151
152 // Token: 0x06000C68 RID: 3176 RVA: 0x00020A58 File Offset: 0x0001EC58
154 {
155 while (list == null)
156 {
157 }
158 int num;
159 if (num != 0)
160 {
161 }
163 long num2 = 0L;
164 int num3 = 5;
165 if (list != null)
166 {
167 }
168 if (num2 != 0L || num3 == 0)
169 {
170 }
171 throw new OutOfMemoryException();
172 }
173
174 // Token: 0x06000C69 RID: 3177 RVA: 0x00020A9C File Offset: 0x0001EC9C
176 {
177 if (!true)
178 {
179 }
180 bool flag = sourceType == destinationType;
181 string xmlTypeName = base.XmlTypeName;
182 if ((xmlTypeName == null || xmlTypeName != null) && (sourceType == null || sourceType != null))
183 {
184 string xmlTypeName2 = base.XmlTypeName;
185 if ((xmlTypeName2 != null && xmlTypeName2 == null) || (sourceType != null && sourceType == null) || xmlTypeName == null || xmlTypeName != null)
186 {
187 }
188 }
189 throw new ArrayTypeMismatchException();
190 }
191
192 // Token: 0x0400062F RID: 1583
194 }
195}
class f__AnonymousType0<< Count > j__TPar
new Type GetType()
Definition Type.cs:287
override object ChangeListType(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
new Exception CreateInvalidClrMappingException(Type sourceType, Type destinationType)
static XmlValueConverter Create(XmlValueConverter atomicConverter)
List< string > StringAsList(string value)
T[] ToArray< T >(object cpp2il__autoParamName__idx_1, IXmlNamespaceResolver cpp2il__autoParamName__idx_2)
XmlListConverter(XmlSchemaType schemaType)
XmlListConverter(XmlBaseConverter atomicConverter)
IList ToList(object list, IXmlNamespaceResolver nsResolver)
string ListAsString(IEnumerable list, IXmlNamespaceResolver nsResolver)
override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
XmlListConverter(XmlBaseConverter atomicConverter, Type clrTypeDefault)