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
DecoderReplacementFallback.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Text
5{
6 // Token: 0x02000267 RID: 615
9 {
10 // Token: 0x060014BE RID: 5310 RVA: 0x0002B604 File Offset: 0x00029804
12 {
13 }
14
15 // Token: 0x060014BF RID: 5311 RVA: 0x0002B614 File Offset: 0x00029814
17 {
18 string @string = info.GetString("strDefault");
19 this._strDefault = @string;
20 }
21
22 // Token: 0x060014C0 RID: 5312 RVA: 0x0002B64C File Offset: 0x0002984C
24 {
25 string strDefault = this._strDefault;
26 info.AddValue("strDefault", strDefault);
27 }
28
29 // Token: 0x060014C1 RID: 5313 RVA: 0x0002B66C File Offset: 0x0002986C
31 {
32 do
33 {
34 base..ctor();
35 }
36 while (replacement == null);
37 int stringLength = replacement._stringLength;
38 long num = 0L;
39 if (stringLength == 0)
40 {
41 }
42 bool flag = char.IsSurrogate(replacement, (int)num);
43 if (stringLength == 0)
44 {
45 }
46 bool flag2 = char.IsHighSurrogate(replacement, (int)num);
47 }
48
49 // Token: 0x1700020D RID: 525
50 // (get) Token: 0x060014C2 RID: 5314 RVA: 0x0002B6CC File Offset: 0x000298CC
51 public string DefaultString
52 {
53 get
54 {
55 return this._strDefault;
56 }
57 }
58
59 // Token: 0x060014C3 RID: 5315 RVA: 0x0002B6E0 File Offset: 0x000298E0
61 {
62 /*
63An exception occurred when decompiling this method (060014C3)
64
65ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Text.DecoderFallbackBuffer System.Text.DecoderReplacementFallback::CreateFallbackBuffer()
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(DecoderReplacementFallback::_strDefault, ldloc:DecoderReplacementFallback(this)))
71}
72
73 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
74 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
75 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
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 88
77 --- End of inner exception stack trace ---
78 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
79 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
80*/;
81 }
82
83 // Token: 0x1700020E RID: 526
84 // (get) Token: 0x060014C4 RID: 5316 RVA: 0x0002B6F4 File Offset: 0x000298F4
85 public override int MaxCharCount
86 {
87 get
88 {
89 return this._strDefault._stringLength;
90 }
91 }
92
93 // Token: 0x060014C5 RID: 5317 RVA: 0x0002B70C File Offset: 0x0002990C
94 public override bool Equals(object value)
95 {
96 if (value != null)
97 {
98 }
99 string strDefault = this._strDefault;
100 bool flag;
101 return flag;
102 }
103
104 // Token: 0x060014C6 RID: 5318 RVA: 0x0002B728 File Offset: 0x00029928
105 public override int GetHashCode()
106 {
107 /*
108An exception occurred when decompiling this method (060014C6)
109
110ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Text.DecoderReplacementFallback::GetHashCode()
111
112 ---> System.Exception: Basic block has to end with unconditional control flow.
113{
114 Block_0:
115 stloc:string(var_0_06, ldfld:string(DecoderReplacementFallback::_strDefault, ldloc:DecoderReplacementFallback(this)))
116}
117
118 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
119 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
120 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
121 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
122 --- End of inner exception stack trace ---
123 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
124 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
125*/;
126 }
127
128 // Token: 0x04000AF8 RID: 2808
129 private string _strDefault;
130 }
131}
class f__AnonymousType0<< Count > j__TPar
void AddValue(string name, object value, Type type)
DecoderReplacementFallback(SerializationInfo info, StreamingContext context)
override DecoderFallbackBuffer CreateFallbackBuffer()
void GetObjectData(SerializationInfo info, StreamingContext context)