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
DomNameTable.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Xml
5{
6 // Token: 0x02000061 RID: 97
7 internal class DomNameTable
8 {
9 // Token: 0x0600045F RID: 1119 RVA: 0x00011068 File Offset: 0x0000F268
17
18 // Token: 0x06000460 RID: 1120 RVA: 0x000110A0 File Offset: 0x0000F2A0
19 public XmlName GetName(string prefix, string localName, string ns, IXmlSchemaInfo schemaInfo)
20 {
21 /*
22An exception occurred when decompiling this method (06000460)
23
24ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Xml.XmlName System.Xml.DomNameTable::GetName(System.String,System.String,System.String,System.Xml.Schema.IXmlSchemaInfo)
25
26 ---> System.Exception: Basic block has to end with unconditional control flow.
27{
28 IL_0038:
29 brtrue(IL_0038, ldloc:string[exp:bool](ns))
30}
31
32 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
33 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
34 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
35 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
36 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
37 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
38 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
39 --- End of inner exception stack trace ---
40 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
41 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
42*/;
43 }
44
45 // Token: 0x06000461 RID: 1121 RVA: 0x000110E8 File Offset: 0x0000F2E8
46 public XmlName AddName(string prefix, string localName, string ns, IXmlSchemaInfo schemaInfo)
47 {
49 if (prefix != null)
50 {
51 if (ns != null)
52 {
53 int hashCode = XmlName.GetHashCode(localName);
54 int num = this.mask;
55 XmlName[] array = this.entries;
59 int num2 = this.mask;
60 XmlName[] array2 = this.entries;
62 XmlName[] array3 = this.entries;
63 if (xmlName == null || xmlName != null)
64 {
65 int num3 = this.count;
67 this.Grow();
68 return xmlName;
69 }
71 }
72 }
73 else
74 {
75 while (ns != null)
76 {
77 }
78 }
79 return xmlName;
80 }
81
82 // Token: 0x06000462 RID: 1122 RVA: 0x00011174 File Offset: 0x0000F374
83 private void Grow()
84 {
85 int num = this.mask;
86 XmlName[] array = this.entries;
87 int num2 = 1;
88 string localName = array.localName;
89 string localName2 = array.localName;
91 }
92
93 // Token: 0x04000288 RID: 648
94 private XmlName[] entries;
95
96 // Token: 0x04000289 RID: 649
97 private int count;
98
99 // Token: 0x0400028A RID: 650
100 private int mask;
101
102 // Token: 0x0400028B RID: 651
104
105 // Token: 0x0400028C RID: 652
107 }
108}
class f__AnonymousType0<< Count > j__TPar
DomNameTable(XmlDocument document)
XmlName GetName(string prefix, string localName, string ns, IXmlSchemaInfo schemaInfo)
XmlName AddName(string prefix, string localName, string ns, IXmlSchemaInfo schemaInfo)
static int GetHashCode(string name)
Definition XmlName.cs:209