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
EditorAttribute.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000372 RID: 882
8 [AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)]
9 public sealed class EditorAttribute : Attribute
10 {
11 // Token: 0x060016FF RID: 5887 RVA: 0x00042A8C File Offset: 0x00040C8C
13 {
14 }
15
16 // Token: 0x06001700 RID: 5888 RVA: 0x00042AA0 File Offset: 0x00040CA0
17 public EditorAttribute(string typeName, string baseTypeName)
18 {
19 if (!true)
20 {
21 }
23 string text = typeName.ToUpper(invariantCulture);
24 this.EditorBaseTypeName = baseTypeName;
25 this.EditorTypeName = typeName;
26 }
27
28 // Token: 0x06001701 RID: 5889 RVA: 0x00042AD4 File Offset: 0x00040CD4
29 public EditorAttribute(string typeName, Type baseType)
30 {
31 if (!true)
32 {
33 }
35 string text = typeName.ToUpper(invariantCulture);
36 this.EditorTypeName = typeName;
37 this.EditorBaseTypeName = baseType;
38 }
39
40 // Token: 0x06001702 RID: 5890 RVA: 0x00042B08 File Offset: 0x00040D08
41 public EditorAttribute(Type type, Type baseType)
42 {
44 this.EditorBaseTypeName = baseType;
45 }
46
47 // Token: 0x17000537 RID: 1335
48 // (get) Token: 0x06001703 RID: 5891 RVA: 0x00042B2C File Offset: 0x00040D2C
49 public string EditorBaseTypeName
50 {
52 get
53 {
55 }
56 }
57
58 // Token: 0x17000538 RID: 1336
59 // (get) Token: 0x06001704 RID: 5892 RVA: 0x00042B40 File Offset: 0x00040D40
60 public string EditorTypeName
61 {
63 get
64 {
66 }
67 }
68
69 // Token: 0x17000539 RID: 1337
70 // (get) Token: 0x06001705 RID: 5893 RVA: 0x00042B54 File Offset: 0x00040D54
71 public override object TypeId
72 {
73 get
74 {
75 /*
76An exception occurred when decompiling this method (06001705)
77
78ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.ComponentModel.EditorAttribute::get_TypeId()
79
80 ---> System.Exception: Basic block has to end with unconditional control flow.
81{
82 Block_0:
83 stloc:string(var_0_0E, ldfld:string(EditorAttribute::<EditorBaseTypeName>k__BackingField, ldloc:EditorAttribute(this)))
84 stloc:int64(var_2_10, ldc.i4:int64(0))
85 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)))
86 stloc:Type(var_4_20, call:Type(object::GetType, ldloc:EditorAttribute[exp:object](this)))
87 stfld:string(EditorAttribute::_typeId, ldloc:EditorAttribute(this), ldloc:string(var_5))
88}
89
90 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
91 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
92 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
93 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
94 --- End of inner exception stack trace ---
95 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
96 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
97*/;
98 }
99 }
100
101 // Token: 0x06001706 RID: 5894 RVA: 0x00042B8C File Offset: 0x00040D8C
102 public override bool Equals(object obj)
103 {
104 if (obj != null)
105 {
106 string text = this.<EditorTypeName>k__BackingField;
107 string text2 = this.<EditorBaseTypeName>k__BackingField;
108 bool flag;
109 return flag;
110 }
111 return true;
112 }
113
114 // Token: 0x06001707 RID: 5895 RVA: 0x00042BB0 File Offset: 0x00040DB0
115 public override int GetHashCode()
116 {
117 return base.GetHashCode();
118 }
119
120 // Token: 0x04001218 RID: 4632
121 private string _typeId;
122
123 // Token: 0x04001219 RID: 4633
125 private readonly string <EditorBaseTypeName>k__BackingField;
126
127 // Token: 0x0400121A RID: 4634
129 private readonly string <EditorTypeName>k__BackingField;
130 }
131}
class f__AnonymousType0<< Count > j__TPar
EditorAttribute(Type type, Type baseType)
EditorAttribute(string typeName, string baseTypeName)
EditorAttribute(string typeName, Type baseType)
readonly string< EditorBaseTypeName > k__BackingField
readonly string< EditorTypeName > k__BackingField
static CultureInfo InvariantCulture