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
NamespaceList.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Xml.Schema
5{
6 // Token: 0x0200012B RID: 299
7 internal class NamespaceList
8 {
9 // Token: 0x06000A17 RID: 2583 RVA: 0x0001CDA8 File Offset: 0x0001AFA8
11 {
12 }
13
14 // Token: 0x06000A18 RID: 2584 RVA: 0x0001CDBC File Offset: 0x0001AFBC
15 public NamespaceList(string namespaces, string targetNamespace)
16 {
18 string text = namespaces.Trim();
19 bool flag = text == "##any";
20 if (text._stringLength != 0)
21 {
22 bool flag2 = text == "##other";
23 int num = 1;
25 return;
26 }
27 }
28
29 // Token: 0x170002B6 RID: 694
30 // (get) Token: 0x06000A19 RID: 2585 RVA: 0x0001CE48 File Offset: 0x0001B048
32 {
33 get
34 {
35 return this.type;
36 }
37 }
38
39 // Token: 0x170002B7 RID: 695
40 // (get) Token: 0x06000A1A RID: 2586 RVA: 0x0001CE5C File Offset: 0x0001B05C
41 public string Excluded
42 {
43 get
44 {
45 return this.targetNamespace;
46 }
47 }
48
49 // Token: 0x170002B8 RID: 696
50 // (get) Token: 0x06000A1B RID: 2587 RVA: 0x0001CE70 File Offset: 0x0001B070
52 {
53 get
54 {
55 /*
56An exception occurred when decompiling this method (06000A1B)
57
58ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.ICollection System.Xml.Schema.NamespaceList::get_Enumerate()
59
60 ---> System.Exception: Basic block has to end with unconditional control flow.
61{
62 Block_0:
63 stloc:ListType(var_0_06, ldfld:ListType(NamespaceList::type, ldloc:NamespaceList(this)))
64 stloc:Hashtable(var_1_0D, ldfld:Hashtable(NamespaceList::set, ldloc:NamespaceList(this)))
65}
66
67 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
68 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
69 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
70 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
71 --- End of inner exception stack trace ---
72 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
73 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
74*/;
75 }
76 }
77
78 // Token: 0x06000A1C RID: 2588 RVA: 0x0001CE8C File Offset: 0x0001B08C
79 public virtual bool Allows(string ns)
80 {
81 if (this.type == NamespaceList.ListType.Any)
82 {
83 return true;
84 }
85 }
86
87 // Token: 0x06000A1D RID: 2589 RVA: 0x0001CEB8 File Offset: 0x0001B0B8
88 public bool Allows(XmlQualifiedName qname)
89 {
90 /*
91An exception occurred when decompiling this method (06000A1D)
92
93ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Xml.Schema.NamespaceList::Allows(System.Xml.XmlQualifiedName)
94
95 ---> System.Exception: Basic block has to end with unconditional control flow.
96{
97 Block_0:
98 stloc:string(var_0_06, ldfld:string(XmlQualifiedName::ns, ldloc:XmlQualifiedName(qname)))
99}
100
101 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
102 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
103 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
104 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
105 --- End of inner exception stack trace ---
106 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
107 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
108*/;
109 }
110
111 // Token: 0x06000A1E RID: 2590 RVA: 0x0001CECC File Offset: 0x0001B0CC
112 public override string ToString()
113 {
114 if (this.type == NamespaceList.ListType.Any)
115 {
116 return "##any";
117 }
119 if (hashtable != null)
120 {
121 }
122 string text = this.targetNamespace;
123 if (hashtable._buckets != null)
124 {
125 }
126 long num = 0L;
127 int num2 = 13;
128 if (hashtable != null)
129 {
130 }
131 if (num == 0L)
132 {
133 while (num2 != 0)
134 {
135 }
136 throw new InvalidCastException();
137 }
138 throw new OutOfMemoryException();
139 }
140
141 // Token: 0x04000512 RID: 1298
143
144 // Token: 0x04000513 RID: 1299
145 private Hashtable set;
146
147 // Token: 0x04000514 RID: 1300
148 private string targetNamespace;
149
150 // Token: 0x0200012C RID: 300
151 public enum ListType
152 {
153 // Token: 0x04000516 RID: 1302
154 Any,
155 // Token: 0x04000517 RID: 1303
156 Other,
157 // Token: 0x04000518 RID: 1304
158 Set
159 }
160 }
161}
class f__AnonymousType0<< Count > j__TPar
Hashtable.bucket[] _buckets
Definition Hashtable.cs:636
NamespaceList.ListType type
NamespaceList(string namespaces, string targetNamespace)
virtual bool Allows(string ns)
bool Allows(XmlQualifiedName qname)