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
TypeInitializationException.cs
Go to the documentation of this file.
1using System;
3
4namespace System
5{
6 // Token: 0x02000113 RID: 275
9 {
10 // Token: 0x06000AA0 RID: 2720 RVA: 0x000180A8 File Offset: 0x000162A8
12 : base("Type constructor threw an exception.")
13 {
14 this._HResult = 5428;
15 }
16
17 // Token: 0x06000AA1 RID: 2721 RVA: 0x000180CC File Offset: 0x000162CC
19 {
20 string text = SR.Format("The type initializer for '{0}' threw an exception.", fullTypeName);
21 base..ctor(text, innerException);
22 this._typeName = fullTypeName;
23 this._HResult = 5428;
24 }
25
26 // Token: 0x06000AA2 RID: 2722 RVA: 0x00018100 File Offset: 0x00016300
27 internal TypeInitializationException(string fullTypeName, string message, Exception innerException)
28 : base(message, innerException)
29 {
30 this._typeName = fullTypeName;
31 this._HResult = 5428;
32 }
33
34 // Token: 0x06000AA3 RID: 2723 RVA: 0x00018128 File Offset: 0x00016328
36 : base(info, context)
37 {
38 string @string = info.GetString("TypeName");
39 this._typeName = @string;
40 }
41
42 // Token: 0x06000AA4 RID: 2724 RVA: 0x00018150 File Offset: 0x00016350
44 {
45 base.GetObjectData(info, context);
46 if (this._typeName == null)
47 {
48 }
49 }
50
51 // Token: 0x170000F1 RID: 241
52 // (get) Token: 0x06000AA5 RID: 2725 RVA: 0x00018170 File Offset: 0x00016370
53 public string TypeName
54 {
55 get
56 {
57 /*
58An exception occurred when decompiling this method (06000AA5)
59
60ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.TypeInitializationException::get_TypeName()
61
62 ---> System.Exception: Basic block has to end with unconditional control flow.
63{
64 IL_0000:
65 brtrue(IL_0000, ldfld:string[exp:bool](TypeInitializationException::_typeName, ldloc:TypeInitializationException(this)))
66}
67
68 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
69 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
70 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
71 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
72 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
73 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
74 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
75 --- End of inner exception stack trace ---
76 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
77 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
78*/;
79 }
80 }
81
82 // Token: 0x040003F5 RID: 1013
83 private string _typeName;
84 }
85}
class f__AnonymousType0<< Count > j__TPar
static string Format(string resourceFormat, params object[] args)
Definition SR.cs:33
Definition SR.cs:7
override void GetObjectData(SerializationInfo info, StreamingContext context)
TypeInitializationException(SerializationInfo info, StreamingContext context)
TypeInitializationException(string fullTypeName, Exception innerException)
TypeInitializationException(string fullTypeName, string message, Exception innerException)