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
ReadOnlyAttribute.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000344 RID: 836
8 public sealed class ReadOnlyAttribute : Attribute
9 {
10 // Token: 0x060015BE RID: 5566 RVA: 0x00040800 File Offset: 0x0003EA00
11 public ReadOnlyAttribute(bool isReadOnly)
12 {
13 }
14
15 // Token: 0x170004F4 RID: 1268
16 // (get) Token: 0x060015BF RID: 5567 RVA: 0x00040814 File Offset: 0x0003EA14
17 public bool IsReadOnly
18 {
20 get
21 {
22 return this.<IsReadOnly>k__BackingField;
23 }
24 }
25
26 // Token: 0x060015C0 RID: 5568 RVA: 0x00040828 File Offset: 0x0003EA28
27 public override bool Equals(object value)
28 {
29 if (value != null)
30 {
31 }
32 return true;
33 }
34
35 // Token: 0x060015C1 RID: 5569 RVA: 0x00040844 File Offset: 0x0003EA44
36 public override int GetHashCode()
37 {
38 return base.GetHashCode();
39 }
40
41 // Token: 0x060015C2 RID: 5570 RVA: 0x00040858 File Offset: 0x0003EA58
42 public override bool IsDefaultAttribute()
43 {
44 /*
45An exception occurred when decompiling this method (060015C2)
46
47ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.ReadOnlyAttribute::IsDefaultAttribute()
48
49 ---> System.Exception: Basic block has to end with unconditional control flow.
50{
51 IL_0000:
52 stloc:bool(var_0_06, ldfld:bool(ReadOnlyAttribute::<IsReadOnly>k__BackingField, ldloc:ReadOnlyAttribute(this)))
53 brtrue(IL_0000, ldc.i4:bool(1))
54}
55
56 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
57 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
58 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
59 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
60 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
61 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
62 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
63 --- End of inner exception stack trace ---
64 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
65 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
66*/;
67 }
68
69 // Token: 0x060015C3 RID: 5571 RVA: 0x00040870 File Offset: 0x0003EA70
70 // Note: this type is marked as 'beforefieldinit'.
72 {
73 }
74
75 // Token: 0x040011AC RID: 4524
77
78 // Token: 0x040011AD RID: 4525
80
81 // Token: 0x040011AE RID: 4526
83
84 // Token: 0x040011AF RID: 4527
86 private readonly bool <IsReadOnly>k__BackingField;
87 }
88}
class f__AnonymousType0<< Count > j__TPar
static readonly ReadOnlyAttribute Yes
readonly bool< IsReadOnly > k__BackingField
static readonly ReadOnlyAttribute Default
static readonly ReadOnlyAttribute No