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
WebProxyDataBuilder.cs
Go to the documentation of this file.
1using System;
5
6namespace System.Net
7{
8 // Token: 0x02000209 RID: 521
9 internal abstract class WebProxyDataBuilder
10 {
11 // Token: 0x06000CB1 RID: 3249 RVA: 0x000287DC File Offset: 0x000269DC
13 {
14 return this.m_Result;
15 }
16
17 // Token: 0x06000CB2 RID: 3250
18 protected abstract void BuildInternal();
19
20 // Token: 0x06000CB3 RID: 3251 RVA: 0x000287F0 File Offset: 0x000269F0
22 {
23 if (addressString != null)
24 {
25 string text = addressString.Trim();
26 WebProxyData result = this.m_Result;
29 if (bypassListString == null)
30 {
31 return;
32 }
33 string text2 = bypassListString.Trim();
38 }
39 }
40
41 // Token: 0x06000CB4 RID: 3252 RVA: 0x00028860 File Offset: 0x00026A60
42 protected void SetAutoProxyUrl(string autoConfigUrl)
43 {
44 bool flag = string.IsNullOrEmpty(autoConfigUrl);
45 }
46
47 // Token: 0x06000CB5 RID: 3253 RVA: 0x00028874 File Offset: 0x00026A74
48 protected void SetAutoDetectSettings(bool value)
49 {
50 WebProxyData result = this.m_Result;
51 }
52
53 // Token: 0x06000CB6 RID: 3254 RVA: 0x00028888 File Offset: 0x00026A88
54 private static global::System.Uri ParseProxyUri(string proxyString)
55 {
56 /*
57An exception occurred when decompiling this method (06000CB6)
58
59ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Uri System.Net.WebProxyDataBuilder::ParseProxyUri(System.String)
60
61 ---> System.Exception: Basic block has to end with unconditional control flow.
62{
63 Block_0:
64 stloc:string(var_1_0F, call:string(string::Concat, ldstr:string("http://"), ldstr:string("://")))
65 stloc:bool(var_3_17, callgetter:bool(Logging::get_On))
66 stloc:FormatException(var_4_1E, call:FormatException(WebProxyDataBuilder::CreateInvalidProxyStringException, ldloc:string(var_1_0F)))
67}
68
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 1852
70 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
71 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
72 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
73 --- End of inner exception stack trace ---
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 92
75 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
76*/;
77 }
78
79 // Token: 0x06000CB7 RID: 3255 RVA: 0x000288B8 File Offset: 0x00026AB8
81 {
82 string[] array;
83 string text = array.Trim();
84 if (text == null || text != null)
85 {
86 string text2 = text.Trim();
87 if (text2 == null || text2 != null)
88 {
89 }
90 }
92 }
93
94 // Token: 0x06000CB8 RID: 3256 RVA: 0x000288F0 File Offset: 0x00026AF0
100
101 // Token: 0x06000CB9 RID: 3257 RVA: 0x0002890C File Offset: 0x00026B0C
102 private static string BypassStringEscape(string rawString)
103 {
104 global::System.Text.RegularExpressions.Match match;
105 bool success = match.Success;
106 global::System.Text.RegularExpressions.Group group;
107 string value = group.Value;
108 global::System.Text.RegularExpressions.Group group2;
109 string value2 = group2.Value;
110 global::System.Text.RegularExpressions.Group group3;
111 return group3.Value;
112 }
113
114 // Token: 0x06000CBA RID: 3258 RVA: 0x00028968 File Offset: 0x00026B68
115 private static string ConvertRegexReservedChars(string rawString)
116 {
117 while (!true)
118 {
119 }
120 }
121
122 // Token: 0x06000CBB RID: 3259 RVA: 0x0002897C File Offset: 0x00026B7C
123 private static ArrayList ParseBypassList(string bypassListString, [Out] bool bypassOnLocal)
124 {
125 /*
126An exception occurred when decompiling this method (06000CBB)
127
128ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.ArrayList System.Net.WebProxyDataBuilder::ParseBypassList(System.String,System.Boolean)
129
130 ---> System.Exception: Basic block has to end with unconditional control flow.
131{
132 Block_2:
133 stloc:string(var_7_28, call:string(WebProxyDataBuilder::BypassStringEscape, ldloc:string(var_4_12)))
134 brtrue(IL_0000, ldloc:int64[exp:bool](var_2_06))
135}
136
137 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
138 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
139 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
140 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
141 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
142 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
143 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
144 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
145 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
146 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
147 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
148 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
149 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
150 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
151 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
152 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
153 --- End of inner exception stack trace ---
154 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
155 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
156*/;
157 }
158
159 // Token: 0x06000CBC RID: 3260 RVA: 0x000289B8 File Offset: 0x00026BB8
161 {
162 }
163
164 // Token: 0x04000ADA RID: 2778
165 private const char addressListDelimiter = ';';
166
167 // Token: 0x04000ADB RID: 2779
168 private const char addressListSchemeValueDelimiter = '=';
169
170 // Token: 0x04000ADC RID: 2780
171 private const char bypassListDelimiter = ';';
172
173 // Token: 0x04000ADD RID: 2781
175
176 // Token: 0x04000ADE RID: 2782
177 private const string regexReserved = "#$()+.?[\\^{|";
178 }
179}
class f__AnonymousType0<< Count > j__TPar
static bool On
Definition Logging.cs:12
static FormatException CreateInvalidProxyStringException(string originalProxyString)
static string BypassStringEscape(string rawString)
static ArrayList ParseBypassList(string bypassListString, [Out] bool bypassOnLocal)
void SetAutoProxyUrl(string autoConfigUrl)
static global::System.Uri ParseProxyUri(string proxyString)
static string ConvertRegexReservedChars(string rawString)
void SetProxyAndBypassList(string addressString, string bypassListString)
static Hashtable ParseProtocolProxies(string proxyListString)