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
ValidationHelper.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Net
6{
7 // Token: 0x020001A3 RID: 419
8 internal static class ValidationHelper
9 {
10 // Token: 0x06000A8A RID: 2698 RVA: 0x00002050 File Offset: 0x00000250
11 public static string[] MakeEmptyArrayNull(string[] stringArray)
12 {
13 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
14 }
15
16 // Token: 0x06000A8B RID: 2699 RVA: 0x00002050 File Offset: 0x00000250
17 public static string MakeStringNull(string stringValue)
18 {
19 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
20 }
21
22 // Token: 0x06000A8C RID: 2700 RVA: 0x000234D4 File Offset: 0x000216D4
23 public static string ExceptionMessage(Exception exception)
24 {
25 string text;
26 return " (" + " (" + text + ")";
27 }
28
29 // Token: 0x06000A8D RID: 2701 RVA: 0x000234F8 File Offset: 0x000216F8
30 public static string ToString(object objectValue)
31 {
32 return "(null)";
33 }
34
35 // Token: 0x06000A8E RID: 2702 RVA: 0x00023520 File Offset: 0x00021720
36 public static string HashString(object objectValue)
37 {
39 string text;
40 return text;
41 }
42
43 // Token: 0x06000A8F RID: 2703 RVA: 0x00023540 File Offset: 0x00021740
44 public static bool IsInvalidHttpString(string stringValue)
45 {
46 /*
47An exception occurred when decompiling this method (06000A8F)
48
49ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.ValidationHelper::IsInvalidHttpString(System.String)
50
51 ---> System.Exception: Basic block has to end with unconditional control flow.
52{
53 IL_0000:
54 brtrue(IL_0000, ldc.i4:bool(1))
55}
56
57 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
58 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
59 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
60 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
61 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
62 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
63 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
64 --- End of inner exception stack trace ---
65 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
66 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
67*/;
68 }
69
70 // Token: 0x06000A90 RID: 2704 RVA: 0x00023550 File Offset: 0x00021750
71 public static bool IsBlankString(string stringValue)
72 {
73 return true;
74 }
75
76 // Token: 0x06000A91 RID: 2705 RVA: 0x00002050 File Offset: 0x00000250
77 public static bool ValidateTcpPort(int port)
78 {
79 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
80 }
81
82 // Token: 0x06000A92 RID: 2706 RVA: 0x00002050 File Offset: 0x00000250
83 public static bool ValidateRange(int actual, int fromAllowed, int toAllowed)
84 {
85 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
86 }
87
88 // Token: 0x06000A93 RID: 2707 RVA: 0x00023560 File Offset: 0x00021760
90 {
91 while (segment == null)
92 {
93 }
94 }
95
96 // Token: 0x06000A94 RID: 2708 RVA: 0x00023574 File Offset: 0x00021774
97 // Note: this type is marked as 'beforefieldinit'.
99 {
100 }
101
102 // Token: 0x04000863 RID: 2147
103 public static string[] EmptyArray;
104
105 // Token: 0x04000864 RID: 2148
106 internal static readonly char[] InvalidMethodChars;
107
108 // Token: 0x04000865 RID: 2149
109 internal static readonly char[] InvalidParamChars;
110 }
111}
class f__AnonymousType0<< Count > j__TPar
static readonly char[] InvalidParamChars
static bool ValidateRange(int actual, int fromAllowed, int toAllowed)
static string[] MakeEmptyArrayNull(string[] stringArray)
static string MakeStringNull(string stringValue)
static bool ValidateTcpPort(int port)
static bool IsBlankString(string stringValue)
static bool IsInvalidHttpString(string stringValue)
static string HashString(object objectValue)
static readonly char[] InvalidMethodChars
static string ExceptionMessage(Exception exception)
static string ToString(object objectValue)
static void ValidateSegment(ArraySegment< byte > segment)