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
TraceListener.cs
Go to the documentation of this file.
1using System;
5
6namespace System.Diagnostics
7{
8 // Token: 0x020000D1 RID: 209
10 {
11 // Token: 0x060004B2 RID: 1202 RVA: 0x00013834 File Offset: 0x00011A34
12 protected TraceListener(string name)
13 {
15 }
16
17 // Token: 0x170000D5 RID: 213
18 // (get) Token: 0x060004B3 RID: 1203 RVA: 0x0001385C File Offset: 0x00011A5C
19 public virtual bool IsThreadSafe
20 {
21 get
22 {
23 }
24 }
25
26 // Token: 0x060004B4 RID: 1204 RVA: 0x0001386C File Offset: 0x00011A6C
27 public void Dispose()
28 {
29 GC.SuppressFinalize(this);
30 }
31
32 // Token: 0x060004B5 RID: 1205 RVA: 0x00013880 File Offset: 0x00011A80
33 protected virtual void Dispose(bool disposing)
34 {
35 }
36
37 // Token: 0x060004B6 RID: 1206 RVA: 0x00013890 File Offset: 0x00011A90
38 public virtual void Flush()
39 {
40 }
41
42 // Token: 0x170000D6 RID: 214
43 // (set) Token: 0x060004B7 RID: 1207 RVA: 0x000138A0 File Offset: 0x00011AA0
44 public int IndentLevel
45 {
46 set
47 {
48 }
49 }
50
51 // Token: 0x170000D7 RID: 215
52 // (set) Token: 0x060004B8 RID: 1208 RVA: 0x000138B0 File Offset: 0x00011AB0
53 public int IndentSize
54 {
55 set
56 {
58 }
59 }
60
61 // Token: 0x170000D8 RID: 216
62 // (get) Token: 0x060004B9 RID: 1209 RVA: 0x000138D0 File Offset: 0x00011AD0
63 [ComVisible(false)]
65 {
66 get
67 {
68 return this.filter;
69 }
70 }
71
72 // Token: 0x170000D9 RID: 217
73 // (get) Token: 0x060004BA RID: 1210 RVA: 0x000138E4 File Offset: 0x00011AE4
74 // (set) Token: 0x060004BB RID: 1211 RVA: 0x000138F8 File Offset: 0x00011AF8
75 protected bool NeedIndent
76 {
77 get
78 {
79 return this.needIndent;
80 }
81 set
82 {
83 }
84 }
85
86 // Token: 0x170000DA RID: 218
87 // (get) Token: 0x060004BC RID: 1212 RVA: 0x00013908 File Offset: 0x00011B08
88 [ComVisible(false)]
90 {
91 get
92 {
93 return this.traceOptions;
94 }
95 }
96
97 // Token: 0x060004BD RID: 1213
98 public abstract void Write(string message);
99
100 // Token: 0x060004BE RID: 1214 RVA: 0x0001391C File Offset: 0x00011B1C
101 protected virtual void WriteIndent()
102 {
103 int num = this.indentLevel;
104 int num2 = this.indentSize;
105 }
106
107 // Token: 0x060004BF RID: 1215
108 public abstract void WriteLine(string message);
109
110 // Token: 0x060004C0 RID: 1216 RVA: 0x0001394C File Offset: 0x00011B4C
111 [ComVisible(false)]
112 public virtual void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string message)
113 {
114 if (this.filter != null)
115 {
116 }
117 this.WriteHeader(source, eventType, id);
118 this.WriteFooter(eventCache);
119 }
120
121 // Token: 0x060004C1 RID: 1217 RVA: 0x00013974 File Offset: 0x00011B74
122 private void WriteHeader(string source, TraceEventType eventType, int id)
123 {
124 if (!true)
125 {
126 }
129 string text2;
130 string text3;
131 string text = string.Format(invariantCulture, "{0} {1}: {2} : ", source, text2, text3);
132 }
133
134 // Token: 0x060004C2 RID: 1218 RVA: 0x000139A8 File Offset: 0x00011BA8
135 private void WriteFooter(TraceEventCache eventCache)
136 {
137 if (eventCache != null)
138 {
139 int num = this.indentLevel;
141 this.indentLevel = num;
142 string text = TraceEventCache.GetProcessId().ToString();
143 string text2 = "ProcessId=" + text;
146 if ("LogicalOperationStack=" != null)
147 {
148 }
149 return;
150 }
151 }
152
153 // Token: 0x060004C3 RID: 1219 RVA: 0x00013AF0 File Offset: 0x00011CF0
155 {
156 /*
157An exception occurred when decompiling this method (060004C3)
158
159ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Diagnostics.TraceListener::IsEnabled(System.Diagnostics.TraceOptions)
160
161 ---> System.Exception: Basic block has to end with unconditional control flow.
162{
163 Block_0:
164 stloc:TraceOptions(var_0_06, ldfld:TraceOptions(TraceListener::traceOptions, ldloc:TraceListener(this)))
165}
166
167 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
168 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
169 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
170 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
171 --- End of inner exception stack trace ---
172 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
173 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
174*/;
175 }
176
177 // Token: 0x040003B1 RID: 945
178 private int indentLevel;
179
180 // Token: 0x040003B2 RID: 946
181 private int indentSize = 4;
182
183 // Token: 0x040003B3 RID: 947
185
186 // Token: 0x040003B4 RID: 948
187 private bool needIndent = true;
188
189 // Token: 0x040003B5 RID: 949
190 private string listenerName;
191
192 // Token: 0x040003B6 RID: 950
194 }
195}
class f__AnonymousType0<< Count > j__TPar
virtual void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string message)
void WriteLine(string message)
bool IsEnabled(TraceOptions opts)
void WriteFooter(TraceEventCache eventCache)
virtual void Dispose(bool disposing)
void WriteHeader(string source, TraceEventType eventType, int id)
void Write(string message)
static CorrelationManager CorrelationManager
Definition Trace.cs:38
static void SuppressFinalize(object obj)
Definition GC.cs:116
static CultureInfo InvariantCulture