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
TrackingValidationObjectDictionary.cs
Go to the documentation of this file.
1using System;
6
7namespace System.Net
8{
9 // Token: 0x0200013B RID: 315
10 internal sealed class TrackingValidationObjectDictionary : global::System.Collections.Specialized.StringDictionary
11 {
12 // Token: 0x0600077F RID: 1919 RVA: 0x0001ABAC File Offset: 0x00018DAC
17
18 // Token: 0x06000780 RID: 1920 RVA: 0x0001ABC8 File Offset: 0x00018DC8
19 private void PersistValue(string key, string value, bool addValue)
20 {
21 string text = key.ToLowerInvariant();
22 bool flag = string.IsNullOrEmpty(value);
23 if (this._validators == null)
24 {
25 return;
26 }
27 if (this._internalObjects != null)
28 {
29 return;
30 }
31 this.<IsChanged>k__BackingField = true;
32 }
33
34 // Token: 0x17000190 RID: 400
35 // (get) Token: 0x06000781 RID: 1921 RVA: 0x0001ABFC File Offset: 0x00018DFC
36 // (set) Token: 0x06000782 RID: 1922 RVA: 0x0001AC10 File Offset: 0x00018E10
37 internal bool IsChanged
38 {
40 get
41 {
42 return this.<IsChanged>k__BackingField;
43 }
45 set
46 {
47 }
48 }
49
50 // Token: 0x06000783 RID: 1923 RVA: 0x0001AC20 File Offset: 0x00018E20
51 internal object InternalGet(string key)
52 {
53 /*
54An exception occurred when decompiling this method (06000783)
55
56ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Net.TrackingValidationObjectDictionary::InternalGet(System.String)
57
58 ---> System.Exception: Basic block has to end with unconditional control flow.
59{
60 IL_0008:
61 stloc:string(var_0_0F, callgetter:string(StringDictionary::get_Item, ldloc:TrackingValidationObjectDictionary[exp:StringDictionary](this), ldloc:string(key)))
62}
63
64 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
65 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
66 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
67 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
68 --- End of inner exception stack trace ---
69 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
70 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
71*/;
72 }
73
74 // Token: 0x06000784 RID: 1924 RVA: 0x0001AC3C File Offset: 0x00018E3C
75 internal void InternalSet(string key, object value)
76 {
77 if (this._internalObjects == null)
78 {
79 }
80 this.<IsChanged>k__BackingField = true;
81 }
82
83 // Token: 0x17000191 RID: 401
84 public override string this[string key]
85 {
86 get
87 {
88 return base[key];
89 }
90 set
91 {
92 long num = 0L;
93 this.PersistValue(key, value, num != 0L);
94 }
95 }
96
97 // Token: 0x06000787 RID: 1927 RVA: 0x0001AC84 File Offset: 0x00018E84
98 public override void Add(string key, string value)
99 {
100 this.PersistValue(key, value, true);
101 }
102
103 // Token: 0x06000788 RID: 1928 RVA: 0x0001AC9C File Offset: 0x00018E9C
104 public override void Clear()
105 {
106 if (this._internalObjects != null)
107 {
108 }
109 base.Clear();
110 this.<IsChanged>k__BackingField = true;
111 }
112
113 // Token: 0x06000789 RID: 1929 RVA: 0x0001ACC0 File Offset: 0x00018EC0
114 public override void Remove(string key)
115 {
116 if (this._internalObjects != null)
117 {
118 }
119 base.Remove(key);
120 this.<IsChanged>k__BackingField = true;
121 }
122
123 // Token: 0x040005EF RID: 1519
125
126 // Token: 0x040005F0 RID: 1520
128
129 // Token: 0x040005F1 RID: 1521
131 private bool <IsChanged>k__BackingField;
132
133 // Token: 0x0200013C RID: 316
135 {
136 // Token: 0x0600078A RID: 1930 RVA: 0x0001ACE4 File Offset: 0x00018EE4
137 public ValidateAndParseValue(object @object, IntPtr method)
138 {
140 this.m_target = @object;
142 this.method_code = this;
143 }
144
145 // Token: 0x0600078B RID: 1931 RVA: 0x0001AD44 File Offset: 0x00018F44
146 public object Invoke(object valueToValidate)
147 {
148 /*
149An exception occurred when decompiling this method (0600078B)
150
151ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Net.TrackingValidationObjectDictionary/ValidateAndParseValue::Invoke(System.Object)
152
153 ---> System.Exception: Basic block has to end with unconditional control flow.
154{
155 Block_0:
156 stloc:native int(var_0_06, ldfld:native int(Delegate::method_code, ldloc:ValidateAndParseValue[exp:Delegate](this)))
157 stloc:native int(var_1_0D, ldfld:native int(Delegate::invoke_impl, ldloc:ValidateAndParseValue[exp:Delegate](this)))
158 stloc:native int(var_2_14, ldfld:native int(Delegate::method, ldloc:ValidateAndParseValue[exp:Delegate](this)))
159}
160
161 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
162 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
163 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
164 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
165 --- End of inner exception stack trace ---
166 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
167 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
168*/;
169 }
170
171 // Token: 0x0600078C RID: 1932 RVA: 0x00002050 File Offset: 0x00000250
172 public IAsyncResult BeginInvoke(object valueToValidate, AsyncCallback callback, object @object)
173 {
174 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
175 }
176
177 // Token: 0x0600078D RID: 1933 RVA: 0x00002050 File Offset: 0x00000250
178 public object EndInvoke(IAsyncResult result)
179 {
180 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
181 }
182 }
183 }
184}
class f__AnonymousType0<< Count > j__TPar
IAsyncResult BeginInvoke(object valueToValidate, AsyncCallback callback, object @object)
readonly Dictionary< string, TrackingValidationObjectDictionary.ValidateAndParseValue > _validators
void PersistValue(string key, string value, bool addValue)
TrackingValidationObjectDictionary(Dictionary< string, TrackingValidationObjectDictionary.ValidateAndParseValue > validators)