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
ProvidePropertyAttribute.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003AF RID: 943
7 [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
8 public sealed class ProvidePropertyAttribute : Attribute
9 {
10 // Token: 0x0600192A RID: 6442 RVA: 0x000468AC File Offset: 0x00044AAC
11 public ProvidePropertyAttribute(string propertyName, Type receiverType)
12 {
14 this.ReceiverTypeName = receiverType;
15 }
16
17 // Token: 0x0600192B RID: 6443 RVA: 0x000468D0 File Offset: 0x00044AD0
23
24 // Token: 0x170005C4 RID: 1476
25 // (get) Token: 0x0600192C RID: 6444 RVA: 0x000468F4 File Offset: 0x00044AF4
26 public string PropertyName
27 {
29 get
30 {
31 return this.<PropertyName>k__BackingField;
32 }
33 }
34
35 // Token: 0x170005C5 RID: 1477
36 // (get) Token: 0x0600192D RID: 6445 RVA: 0x00046908 File Offset: 0x00044B08
37 public string ReceiverTypeName
38 {
40 get
41 {
43 }
44 }
45
46 // Token: 0x0600192E RID: 6446 RVA: 0x0004691C File Offset: 0x00044B1C
47 public override bool Equals(object obj)
48 {
49 if (obj != null)
50 {
51 string text = this.<PropertyName>k__BackingField;
52 string text2 = this.<ReceiverTypeName>k__BackingField;
53 bool flag;
54 return flag;
55 }
56 return true;
57 }
58
59 // Token: 0x0600192F RID: 6447 RVA: 0x00046940 File Offset: 0x00044B40
60 public override int GetHashCode()
61 {
62 /*
63An exception occurred when decompiling this method (0600192F)
64
65ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.ComponentModel.ProvidePropertyAttribute::GetHashCode()
66
67 ---> System.Exception: Basic block has to end with unconditional control flow.
68{
69 Block_0:
70 stloc:string(var_0_06, ldfld:string(ProvidePropertyAttribute::<PropertyName>k__BackingField, ldloc:ProvidePropertyAttribute(this)))
71 stloc:string(var_1_0D, ldfld:string(ProvidePropertyAttribute::<ReceiverTypeName>k__BackingField, ldloc:ProvidePropertyAttribute(this)))
72}
73
74 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
75 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
76 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
77 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
78 --- End of inner exception stack trace ---
79 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
80 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
81*/;
82 }
83
84 // Token: 0x170005C6 RID: 1478
85 // (get) Token: 0x06001930 RID: 6448 RVA: 0x0004695C File Offset: 0x00044B5C
86 public override object TypeId
87 {
88 get
89 {
90 /*
91An exception occurred when decompiling this method (06001930)
92
93ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.ComponentModel.ProvidePropertyAttribute::get_TypeId()
94
95 ---> System.Exception: Basic block has to end with unconditional control flow.
96{
97 Block_0:
98 stloc:Type(var_0_06, call:Type(object::GetType, ldloc:ProvidePropertyAttribute[exp:object](this)))
99 stloc:string(var_1_0D, ldfld:string(ProvidePropertyAttribute::<PropertyName>k__BackingField, ldloc:ProvidePropertyAttribute(this)))
100}
101
102 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
103 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
104 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
105 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
106 --- End of inner exception stack trace ---
107 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
108 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
109*/;
110 }
111 }
112
113 // Token: 0x040012B3 RID: 4787
115 private readonly string <PropertyName>k__BackingField;
116
117 // Token: 0x040012B4 RID: 4788
119 private readonly string <ReceiverTypeName>k__BackingField;
120 }
121}
class f__AnonymousType0<< Count > j__TPar
ProvidePropertyAttribute(string propertyName, Type receiverType)
readonly string< ReceiverTypeName > k__BackingField
ProvidePropertyAttribute(string propertyName, string receiverTypeName)