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
DesignerAttribute.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020003DF RID: 991
8 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = true)]
9 [Conditional("FALSE")]
10 public sealed class DesignerAttribute : Attribute
11 {
12 // Token: 0x06001A2F RID: 6703 RVA: 0x0004875C File Offset: 0x0004695C
14 {
15 if (!true)
16 {
17 }
19 string text = designerTypeName.ToUpper(invariantCulture);
21 if (!true)
22 {
23 }
24 Type type;
26 }
27
28 // Token: 0x06001A30 RID: 6704 RVA: 0x00048794 File Offset: 0x00046994
35
36 // Token: 0x06001A31 RID: 6705 RVA: 0x000487B8 File Offset: 0x000469B8
47
48 // Token: 0x06001A32 RID: 6706 RVA: 0x000487EC File Offset: 0x000469EC
59
60 // Token: 0x06001A33 RID: 6707 RVA: 0x00048820 File Offset: 0x00046A20
66
67 // Token: 0x17000602 RID: 1538
68 // (get) Token: 0x06001A34 RID: 6708 RVA: 0x00048844 File Offset: 0x00046A44
70 {
71 get
72 {
73 return this.designerBaseTypeName;
74 }
75 }
76
77 // Token: 0x17000603 RID: 1539
78 // (get) Token: 0x06001A35 RID: 6709 RVA: 0x00048858 File Offset: 0x00046A58
79 public string DesignerTypeName
80 {
81 get
82 {
83 return this.designerTypeName;
84 }
85 }
86
87 // Token: 0x17000604 RID: 1540
88 // (get) Token: 0x06001A36 RID: 6710 RVA: 0x0004886C File Offset: 0x00046A6C
89 public override object TypeId
90 {
91 get
92 {
93 /*
94An exception occurred when decompiling this method (06001A36)
95
96ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.ComponentModel.DesignerAttribute::get_TypeId()
97
98 ---> System.Exception: Basic block has to end with unconditional control flow.
99{
100 Block_0:
101 stloc:string(var_0_0E, ldfld:string(DesignerAttribute::designerBaseTypeName, ldloc:DesignerAttribute(this)))
102 stloc:int64(var_2_10, ldc.i4:int64(0))
103 stloc:string(var_3_19, call:string(string::Substring, ldloc:string(var_0_0E), ldloc:int64[exp:int32](var_2_10), ldloc:int32(var_1)))
104 stloc:Type(var_4_20, call:Type(object::GetType, ldloc:DesignerAttribute[exp:object](this)))
105 stfld:string(DesignerAttribute::typeId, ldloc:DesignerAttribute(this), ldloc:string(var_5))
106}
107
108 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
109 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
110 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
111 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
112 --- End of inner exception stack trace ---
113 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
114 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
115*/;
116 }
117 }
118
119 // Token: 0x06001A37 RID: 6711 RVA: 0x000488A4 File Offset: 0x00046AA4
120 public override bool Equals(object obj)
121 {
122 if (obj != null)
123 {
124 string text = this.designerBaseTypeName;
125 string text2 = this.designerTypeName;
126 bool flag;
127 return flag;
128 }
129 return true;
130 }
131
132 // Token: 0x06001A38 RID: 6712 RVA: 0x000488C8 File Offset: 0x00046AC8
133 public override int GetHashCode()
134 {
135 /*
136An exception occurred when decompiling this method (06001A38)
137
138ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.ComponentModel.DesignerAttribute::GetHashCode()
139
140 ---> System.Exception: Basic block has to end with unconditional control flow.
141{
142 Block_0:
143 stloc:string(var_0_06, ldfld:string(DesignerAttribute::designerTypeName, ldloc:DesignerAttribute(this)))
144 stloc:string(var_1_0D, ldfld:string(DesignerAttribute::designerBaseTypeName, ldloc:DesignerAttribute(this)))
145}
146
147 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
148 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
149 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
150 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
151 --- End of inner exception stack trace ---
152 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
153 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
154*/;
155 }
156
157 // Token: 0x04001304 RID: 4868
159
160 // Token: 0x04001305 RID: 4869
162
163 // Token: 0x04001306 RID: 4870
164 private string typeId;
165 }
166}
class f__AnonymousType0<< Count > j__TPar
DesignerAttribute(string designerTypeName, string designerBaseTypeName)
DesignerAttribute(Type designerType, Type designerBaseType)
DesignerAttribute(string designerTypeName, Type designerBaseType)
static CultureInfo InvariantCulture