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
CurrentSystemTimeZone.cs
Go to the documentation of this file.
1using System;
7
8namespace System
9{
10 // Token: 0x02000099 RID: 153
11 [Obsolete("System.CurrentSystemTimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo.Local instead.")]
14 {
15 // Token: 0x06000591 RID: 1425 RVA: 0x0000E320 File Offset: 0x0000C520
17 {
18 if (!true)
19 {
20 }
22 TimeSpan baseUtcOffset = local._baseUtcOffset;
24 string standardName = local.StandardName;
26 string daylightName = local.DaylightName;
28 }
29
30 // Token: 0x06000592 RID: 1426 RVA: 0x0000E36C File Offset: 0x0000C56C
31 public override DaylightTime GetDaylightChanges(int year)
32 {
33 return this.GetCachedDaylightChanges(year);
34 }
35
36 // Token: 0x06000593 RID: 1427 RVA: 0x0000E388 File Offset: 0x0000C588
37 private static DaylightTime CreateDaylightChanges(int year)
38 {
39 /*
40An exception occurred when decompiling this method (06000593)
41
42ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Globalization.DaylightTime System.CurrentSystemTimeZone::CreateDaylightChanges(System.Int32)
43
44 ---> System.Exception: Basic block has to end with unconditional control flow.
45{
46 IL_0034:
47 brtrue(IL_0000, ldloc:DateTime[exp:bool](var_3))
48}
49
50 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
51 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
52 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
53 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
54 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
55 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
56 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
57 --- End of inner exception stack trace ---
58 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
59 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
60*/;
61 }
62
63 // Token: 0x06000594 RID: 1428 RVA: 0x0000E3CC File Offset: 0x0000C5CC
64 public override TimeSpan GetUtcOffset(DateTime time)
65 {
66 if (!true)
67 {
68 return;
69 }
70 }
71
72 // Token: 0x06000595 RID: 1429 RVA: 0x0000207A File Offset: 0x0000027A
73 public static bool GetTimeZoneData(int year, [Out] long[] data, [Out] string[] names, [Out] bool daylight_inverted)
74 {
75 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
76 }
77
78 // Token: 0x06000596 RID: 1430 RVA: 0x0000E3E0 File Offset: 0x0000C5E0
98
99 // Token: 0x0400021F RID: 543
100 private long m_ticksOffset;
101
102 // Token: 0x04000220 RID: 544
103 private string m_standardName;
104
105 // Token: 0x04000221 RID: 545
106 private string m_daylightName;
107
108 // Token: 0x04000222 RID: 546
110 }
111}
class f__AnonymousType0<< Count > j__TPar
static DaylightTime CreateDaylightChanges(int year)
override DaylightTime GetDaylightChanges(int year)
DaylightTime GetCachedDaylightChanges(int year)
override TimeSpan GetUtcOffset(DateTime time)
static bool GetTimeZoneData(int year, [Out] long[] data, [Out] string[] names, [Out] bool daylight_inverted)
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11
static TimeZoneInfo Local