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
KnownHttpVerb.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Net
5{
6 // Token: 0x020001BA RID: 442
7 internal class KnownHttpVerb
8 {
9 // Token: 0x06000AAF RID: 2735 RVA: 0x000238F4 File Offset: 0x00021AF4
10 internal KnownHttpVerb(string name, bool requireContentBody, bool contentBodyNotAllowed, bool connectRequest, bool expectNoContentResponse)
11 {
13 }
14
15 // Token: 0x06000AB0 RID: 2736 RVA: 0x00023910 File Offset: 0x00021B10
17 {
18 if (!true)
19 {
20 }
21 }
22
23 // Token: 0x06000AB1 RID: 2737 RVA: 0x0002392C File Offset: 0x00021B2C
24 public bool Equals(KnownHttpVerb verb)
25 {
26 string name = this.Name;
27 string name2 = verb.Name;
28 int num = string.Compare(name, name2, StringComparison.OrdinalIgnoreCase);
29 return true;
30 }
31
32 // Token: 0x06000AB2 RID: 2738 RVA: 0x00023954 File Offset: 0x00021B54
33 public static KnownHttpVerb Parse(string name)
34 {
35 /*
36An exception occurred when decompiling this method (06000AB2)
37
38ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.KnownHttpVerb System.Net.KnownHttpVerb::Parse(System.String)
39
40 ---> System.Exception: Basic block has to end with unconditional control flow.
41{
42 IL_0003:
43 brtrue(IL_0000, logicnot:bool(ldloc:object[exp:bool](var_0)))
44}
45
46 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
47 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
48 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
49 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
50 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
51 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
52 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
53 --- End of inner exception stack trace ---
54 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
55 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
56*/;
57 }
58
59 // Token: 0x0400095C RID: 2396
60 internal string Name;
61
62 // Token: 0x0400095D RID: 2397
63 internal bool RequireContentBody;
64
65 // Token: 0x0400095E RID: 2398
66 internal bool ContentBodyNotAllowed;
67
68 // Token: 0x0400095F RID: 2399
69 internal bool ConnectRequest;
70
71 // Token: 0x04000960 RID: 2400
73
74 // Token: 0x04000961 RID: 2401
75 private static global::System.Collections.Specialized.ListDictionary NamedHeaders;
76
77 // Token: 0x04000962 RID: 2402
78 internal static KnownHttpVerb Get;
79
80 // Token: 0x04000963 RID: 2403
81 internal static KnownHttpVerb Connect;
82
83 // Token: 0x04000964 RID: 2404
84 internal static KnownHttpVerb Head;
85
86 // Token: 0x04000965 RID: 2405
87 internal static KnownHttpVerb Put;
88
89 // Token: 0x04000966 RID: 2406
90 internal static KnownHttpVerb Post;
91
92 // Token: 0x04000967 RID: 2407
93 internal static KnownHttpVerb MkCol;
94 }
95}
class f__AnonymousType0<< Count > j__TPar
bool Equals(KnownHttpVerb verb)
static global::System.Collections.Specialized.ListDictionary NamedHeaders
static KnownHttpVerb Post
static KnownHttpVerb MkCol
static KnownHttpVerb Put
static KnownHttpVerb Parse(string name)
static KnownHttpVerb Connect
static KnownHttpVerb Head
static KnownHttpVerb Get
KnownHttpVerb(string name, bool requireContentBody, bool contentBodyNotAllowed, bool connectRequest, bool expectNoContentResponse)