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
EncoderReplacementFallback.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Text
5{
6 // Token: 0x02000272 RID: 626
9 {
10 // Token: 0x06001512 RID: 5394 RVA: 0x0002BE4C File Offset: 0x0002A04C
12 {
13 }
14
15 // Token: 0x06001513 RID: 5395 RVA: 0x0002BE5C File Offset: 0x0002A05C
17 {
18 string @string = info.GetString("strDefault");
19 this._strDefault = @string;
20 }
21
22 // Token: 0x06001514 RID: 5396 RVA: 0x0002BE94 File Offset: 0x0002A094
24 {
25 string strDefault = this._strDefault;
26 info.AddValue("strDefault", strDefault);
27 }
28
29 // Token: 0x06001515 RID: 5397 RVA: 0x0002BEB4 File Offset: 0x0002A0B4
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: 0x1700021F RID: 543
50 // (get) Token: 0x06001516 RID: 5398 RVA: 0x0002BF14 File Offset: 0x0002A114
51 public string DefaultString
52 {
53 get
54 {
55 return this._strDefault;
56 }
57 }
58
59 // Token: 0x06001517 RID: 5399 RVA: 0x0002BF28 File Offset: 0x0002A128
61 {
62 /*
63An exception occurred when decompiling this method (06001517)
64
65ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Text.EncoderFallbackBuffer System.Text.EncoderReplacementFallback::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(EncoderReplacementFallback::_strDefault, ldloc:EncoderReplacementFallback(this)))
71 stloc:string(var_1_0E, call:string(string::Concat, ldloc:string(var_0_06), ldloc:string(var_0_06)))
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: 0x17000220 RID: 544
85 // (get) Token: 0x06001518 RID: 5400 RVA: 0x0002BF44 File Offset: 0x0002A144
86 public override int MaxCharCount
87 {
88 get
89 {
90 return this._strDefault._stringLength;
91 }
92 }
93
94 // Token: 0x06001519 RID: 5401 RVA: 0x0002BF5C File Offset: 0x0002A15C
95 public override bool Equals(object value)
96 {
97 if (value != null)
98 {
99 }
100 string strDefault = this._strDefault;
101 bool flag;
102 return flag;
103 }
104
105 // Token: 0x0600151A RID: 5402 RVA: 0x0002BF78 File Offset: 0x0002A178
106 public override int GetHashCode()
107 {
108 /*
109An exception occurred when decompiling this method (0600151A)
110
111ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Text.EncoderReplacementFallback::GetHashCode()
112
113 ---> System.Exception: Basic block has to end with unconditional control flow.
114{
115 Block_0:
116 stloc:string(var_0_06, ldfld:string(EncoderReplacementFallback::_strDefault, ldloc:EncoderReplacementFallback(this)))
117}
118
119 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
120 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
121 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
122 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
123 --- End of inner exception stack trace ---
124 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
125 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
126*/;
127 }
128
129 // Token: 0x04000B17 RID: 2839
130 private string _strDefault;
131 }
132}
class f__AnonymousType0<< Count > j__TPar
void AddValue(string name, object value, Type type)
override EncoderFallbackBuffer CreateFallbackBuffer()
EncoderReplacementFallback(SerializationInfo info, StreamingContext context)
void GetObjectData(SerializationInfo info, StreamingContext context)