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
TimeZoneInfo.cs
Go to the documentation of this file.
1using System;
4using System.IO;
8using System.Text;
10using Cpp2IlInjected;
11
12namespace System
13{
14 // Token: 0x0200006A RID: 106
15 [TypeForwardedFrom("System.Core, Version=2.0.5.0, Culture=Neutral, PublicKeyToken=7cec85d7bea7798e")]
17 public sealed class TimeZoneInfo : IEquatable<TimeZoneInfo>, ISerializable, IDeserializationCallback
18 {
19 // Token: 0x06000302 RID: 770 RVA: 0x00009A10 File Offset: 0x00007C10
20 private TimeZoneInfo(byte[] data, string id, bool dstDisabled)
21 {
22 int num = 1;
23 base..ctor();
24 if (num == 0)
25 {
26 }
27 this._id = id;
28 this._displayName = "Local";
29 if ("Local" == null)
30 {
31 }
32 this._baseUtcOffset = "Local";
34 }
35
36 // Token: 0x06000303 RID: 771 RVA: 0x00009A7C File Offset: 0x00007C7C
59
60 // Token: 0x06000304 RID: 772 RVA: 0x00009AF4 File Offset: 0x00007CF4
62 {
63 if (!true)
64 {
65 }
67 }
68
69 // Token: 0x06000305 RID: 773 RVA: 0x00009B0C File Offset: 0x00007D0C
70 private static bool TryGetLocalTzFile([Out] byte[] rawData, [Out] string id)
71 {
72 if (!true)
73 {
74 }
76 if (tzEnvironmentVariable != null)
77 {
78 int stringLength = tzEnvironmentVariable._stringLength;
79 if (stringLength == 0)
80 {
81 string text = Path.Combine(TimeZoneInfo.GetTimeZoneDirectory(), "localtime");
82 bool flag;
83 return flag;
84 }
85 long num = 0L;
86 char c = tzEnvironmentVariable[(int)num];
88 if (stringLength == 0)
89 {
90 }
92 }
93 return true;
94 }
95
96 // Token: 0x06000306 RID: 774 RVA: 0x00009B68 File Offset: 0x00007D68
97 private static string GetTzEnvironmentVariable()
98 {
100 bool flag = string.IsNullOrEmpty(environmentVariable);
101 long num = 0L;
102 char c = environmentVariable[(int)num];
103 return environmentVariable.Substring(1);
104 }
105
106 // Token: 0x06000307 RID: 775 RVA: 0x00009B9C File Offset: 0x00007D9C
107 private static bool TryLoadTzFile(string tzFilePath, byte[] rawData, string id)
108 {
109 /*
110An exception occurred when decompiling this method (06000307)
111
112ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.TimeZoneInfo::TryLoadTzFile(System.String,System.Byte[],System.String)
113
114 ---> System.Exception: Basic block has to end with unconditional control flow.
115{
116 IL_001C:
117 stfld:uint8(uint8::m_value, ldloc:uint8[][exp:uint8&](rawData), ldloc:string[exp:uint8](var_7))
118}
119
120 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
121 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
122 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
123 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
124 --- End of inner exception stack trace ---
125 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
126 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
127*/;
128 }
129
130 // Token: 0x06000308 RID: 776 RVA: 0x00009BD4 File Offset: 0x00007DD4
131 private static string FindTimeZoneIdUsingReadLink(string tzFilePath)
132 {
133 if (!true)
134 {
135 }
136 string text;
137 if (text != null)
138 {
140 string text2;
141 bool flag = text2.StartsWith(timeZoneDirectory, StringComparison.Ordinal);
142 int stringLength = timeZoneDirectory._stringLength;
143 return text2.Substring(stringLength);
144 }
145 }
146
147 // Token: 0x06000309 RID: 777 RVA: 0x00009C0C File Offset: 0x00007E0C
148 private static string GetDirectoryEntryFullPath(Interop.Sys.DirectoryEntry dirent, string currentPath)
149 {
150 if (dirent != null)
151 {
152 }
153 if (!true)
154 {
155 }
156 string text;
157 return text;
158 }
159
160 // Token: 0x0600030A RID: 778 RVA: 0x00009C28 File Offset: 0x00007E28
161 private static void EnumerateFilesRecursively(string path, Predicate<string> condition)
162 {
163 if (!true)
164 {
165 }
166 int readDirRBufferSize = Interop.Sys.GetReadDirRBufferSize();
167 }
168
169 // Token: 0x0600030B RID: 779 RVA: 0x00009CCC File Offset: 0x00007ECC
170 private static string FindTimeZoneId(byte[] rawData)
171 {
172 if ("Local" == null)
173 {
174 }
176 if ("Local" == null)
177 {
178 }
179 string text = Path.Combine(Path.Combine(timeZoneDirectory, "localtime"), "posixrules");
180 return timeZoneDirectory;
181 }
182
183 // Token: 0x0600030C RID: 780 RVA: 0x00009D08 File Offset: 0x00007F08
184 private static bool CompareTimeZoneFile(string filePath, byte[] buffer, byte[] rawData)
185 {
186 if (!false)
187 {
189 }
190 throw new OutOfMemoryException();
191 }
192
193 // Token: 0x0600030D RID: 781 RVA: 0x00009D3C File Offset: 0x00007F3C
195 {
196 int num = 1;
197 if (num == 0)
198 {
199 }
200 if (num == 0)
201 {
202 }
204 if (timeZoneInfo != null)
205 {
206 return;
207 }
208 if (num == 0)
209 {
210 }
211 if (TimeZoneInfo.CreateLocalUnity() != null)
212 {
213 return;
214 }
215 if (num == 0)
216 {
217 }
218 if (!true)
219 {
220 return;
221 }
222 }
223
224 // Token: 0x0600030E RID: 782 RVA: 0x00009D68 File Offset: 0x00007F68
225 private static TimeZoneInfo GetTimeZoneFromTzData(byte[] rawData, string id)
226 {
227 }
228
229 // Token: 0x0600030F RID: 783 RVA: 0x00009D78 File Offset: 0x00007F78
230 private static string GetTimeZoneDirectory()
231 {
232 if (!true)
233 {
234 }
235 long num = 0L;
237 if (environmentVariable != null)
238 {
239 if ("TZDIR" == null)
240 {
241 }
242 bool flag = environmentVariable.EndsWith((char)num);
243 if ("TZDIR" == null)
244 {
245 }
246 string text;
247 return environmentVariable + text;
248 }
249 return "/usr/share/zoneinfo/";
250 }
251
252 // Token: 0x06000310 RID: 784 RVA: 0x00009DBC File Offset: 0x00007FBC
254 {
255 if (!true)
256 {
257 }
259 return 1;
260 }
261
262 // Token: 0x06000311 RID: 785 RVA: 0x00009DD4 File Offset: 0x00007FD4
269
270 // Token: 0x06000312 RID: 786 RVA: 0x0000207A File Offset: 0x0000027A
272 {
273 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
274 }
275
276 // Token: 0x06000313 RID: 787 RVA: 0x00009DE4 File Offset: 0x00007FE4
278 {
279 /*
280An exception occurred when decompiling this method (06000313)
281
282ICSharpCode.Decompiler.DecompilerException: Error decompiling System.TimeSpan System.TimeZoneInfo::TZif_CalculateTransitionOffsetFromBase(System.TimeSpan,System.TimeSpan)
283
284 ---> System.Exception: Basic block has to end with unconditional control flow.
285{
286 Block_0:
287 stloc:int32(var_1_18, callgetter:int32(TimeSpan::get_Hours, ldloc:TimeSpan[exp:valuetype System.TimeSpan&](var_0_0A)))
288}
289
290 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
291 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
292 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
293 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
294 --- End of inner exception stack trace ---
295 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
296 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
297*/;
298 }
299
300 // Token: 0x06000314 RID: 788 RVA: 0x00009E0C File Offset: 0x0000800C
304
305 // Token: 0x06000315 RID: 789 RVA: 0x00009E1C File Offset: 0x0000801C
320
321 // Token: 0x06000316 RID: 790 RVA: 0x00009E44 File Offset: 0x00008044
322 private static TimeSpan? TZif_ParseOffsetString(string offset)
323 {
324 /*
325An exception occurred when decompiling this method (06000316)
326
327ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Nullable`1<System.TimeSpan> System.TimeZoneInfo::TZif_ParseOffsetString(System.String)
328
329 ---> System.Exception: Basic block has to end with unconditional control flow.
330{
331 Block_0:
332 stloc:bool(var_0_0A, call:bool(string::IsNullOrEmpty, ldstr:string("g")))
333 stloc:bool(var_6_17, call:bool(int32::TryParse, ldloc:string(var_5), ldc.i4:int32(1)))
334 stloc:CultureInfo(var_10_27, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
335}
336
337 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
338 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
339 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
340 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
341 --- End of inner exception stack trace ---
342 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
343 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
344*/;
345 }
346
347 // Token: 0x06000317 RID: 791 RVA: 0x00009E7C File Offset: 0x0000807C
348 private static DateTime ParseTimeOfDay(string time)
349 {
350 /*
351An exception occurred when decompiling this method (06000317)
352
353ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.TimeZoneInfo::ParseTimeOfDay(System.String)
354
355 ---> System.Exception: Basic block has to end with unconditional control flow.
356{
357 IL_0003:
358 stloc:valuetype System.Nullable`1<valuetype System.TimeSpan>(var_0_09, call:Nullable`1[exp:valuetype System.Nullable`1<valuetype System.TimeSpan>](TimeZoneInfo::TZif_ParseOffsetString, ldloc:string(time)))
359}
360
361 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
362 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
363 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
364 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
365 --- End of inner exception stack trace ---
366 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
367 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
368*/;
369 }
370
371 // Token: 0x06000318 RID: 792 RVA: 0x00009E98 File Offset: 0x00008098
373 {
374 bool flag = string.IsNullOrEmpty(date);
375 return 1;
376 }
377
378 // Token: 0x06000319 RID: 793 RVA: 0x00009F3C File Offset: 0x0000813C
379 private static void TZif_ParseJulianDay(string date, [Out] int month, [Out] int day)
380 {
381 long num2;
382 do
383 {
384 int stringLength = date._stringLength;
385 int num = 1;
386 char c = date[num];
387 num2 = 0L;
388 int num3 = 2;
389 char c2 = date[num];
390 int stringLength2 = date._stringLength;
391 char c3 = date[num3];
392 if (stringLength2 == 0)
393 {
394 }
395 }
396 while (num2 == 0L);
397 }
398
399 // Token: 0x0600031A RID: 794 RVA: 0x00009F94 File Offset: 0x00008194
400 private static bool TZif_ParseMDateRule(string dateRule, [Out] int month, [Out] int week, [Out] DayOfWeek dayOfWeek)
401 {
402 /*
403An exception occurred when decompiling this method (0600031A)
404
405ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.TimeZoneInfo::TZif_ParseMDateRule(System.String,System.Int32,System.Int32,System.DayOfWeek)
406
407 ---> System.Exception: Basic block has to end with unconditional control flow.
408{
409 IL_0025:
410 stloc:int64(var_25_3A, ldc.i4:int64(0))
411 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](week), ldloc:int64[exp:int32](var_25_3A))
412}
413
414 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
415 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
416 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
417 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
418 --- End of inner exception stack trace ---
419 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
420 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
421*/;
422 }
423
424 // Token: 0x0600031B RID: 795 RVA: 0x00009FE8 File Offset: 0x000081E8
425 private static bool TZif_ParsePosixFormat(string posixFormat, [Out] string standardName, [Out] string standardOffset, [Out] string daylightSavingsName, [Out] string daylightSavingsOffset, [Out] string start, [Out] string startTime, [Out] string end, [Out] string endTime)
426 {
427 int num = 1;
428 if (num == 0)
429 {
430 }
431 string text;
432 bool flag = string.IsNullOrEmpty(text);
433 if (num == 0)
434 {
435 }
436 if (num == 0)
437 {
438 }
439 if (num == 0)
440 {
441 }
442 bool flag2;
443 return flag2;
444 }
445
446 // Token: 0x0600031C RID: 796 RVA: 0x0000A010 File Offset: 0x00008210
447 private static string TZif_ParsePosixName(string posixFormat, int index)
448 {
449 string text;
450 return text;
451 }
452
453 // Token: 0x0600031D RID: 797 RVA: 0x0000A028 File Offset: 0x00008228
454 private static string TZif_ParsePosixOffset(string posixFormat, int index)
455 {
456 if (!true)
457 {
458 }
459 if (!true)
460 {
461 }
462 string text;
463 return text;
464 }
465
466 // Token: 0x0600031E RID: 798 RVA: 0x0000A03C File Offset: 0x0000823C
467 private static void TZif_ParsePosixDateTime(string posixFormat, int index, [Out] string date, [Out] string time)
468 {
469 if (!true)
470 {
471 }
473 int stringLength = posixFormat._stringLength;
475 }
476
477 // Token: 0x0600031F RID: 799 RVA: 0x0000A064 File Offset: 0x00008264
478 private static string TZif_ParsePosixDate(string posixFormat, int index)
479 {
480 if (!true)
481 {
482 }
483 if (!true)
484 {
485 }
486 string text;
487 return text;
488 }
489
490 // Token: 0x06000320 RID: 800 RVA: 0x0000A078 File Offset: 0x00008278
491 private static string TZif_ParsePosixTime(string posixFormat, int index)
492 {
493 if (!true)
494 {
495 }
496 if (!true)
497 {
498 }
499 string text;
500 return text;
501 }
502
503 // Token: 0x06000321 RID: 801 RVA: 0x0000A08C File Offset: 0x0000828C
505 {
506 string text;
507 return text;
508 }
509
510 // Token: 0x06000322 RID: 802 RVA: 0x0000A09C File Offset: 0x0000829C
511 private static string TZif_GetZoneAbbreviation(string zoneAbbreviations, int index)
512 {
513 string text;
514 return text;
515 }
516
517 // Token: 0x06000323 RID: 803 RVA: 0x0000207A File Offset: 0x0000027A
518 private static int TZif_ToInt32(byte[] value, int startIndex)
519 {
520 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
521 }
522
523 // Token: 0x06000324 RID: 804 RVA: 0x0000207A File Offset: 0x0000027A
524 private static long TZif_ToInt64(byte[] value, int startIndex)
525 {
526 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
527 }
528
529 // Token: 0x06000325 RID: 805 RVA: 0x0000A0AC File Offset: 0x000082AC
530 private static long TZif_ToUnixTime(byte[] value, int startIndex, TimeZoneInfo.TZVersion version)
531 {
532 if (!true)
533 {
534 }
535 long num;
536 return num;
537 }
538
539 // Token: 0x06000326 RID: 806 RVA: 0x0000A0C0 File Offset: 0x000082C0
541 {
542 /*
543An exception occurred when decompiling this method (06000326)
544
545ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.TimeZoneInfo::TZif_UnixTimeToDateTime(System.Int64)
546
547 ---> System.Exception: Basic block has to end with unconditional control flow.
548{
549 Block_0:
550 stloc:DateTime(var_0_0B, callgetter:DateTime(DateTimeOffset::get_UtcDateTime, call:DateTimeOffset[exp:valuetype System.DateTimeOffset&](DateTimeOffset::FromUnixTimeSeconds, ldloc:int64(unixTime))))
551}
552
553 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
554 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
555 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
556 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
557 --- End of inner exception stack trace ---
558 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
559 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
560*/;
561 }
562
563 // Token: 0x06000327 RID: 807 RVA: 0x0000A0D8 File Offset: 0x000082D8
564 private static void TZif_ParseRaw(byte[] data, [Out] TimeZoneInfo.TZifHead t, [Out] DateTime[] dts, [Out] byte[] typeOfLocalTime, [Out] TimeZoneInfo.TZifType[] transitionType, [Out] string zoneAbbreviations, [Out] bool[] StandardTime, [Out] bool[] GmtTime, [Out] string futureTransitionsPosixFormat)
565 {
566 if (t.Version != TimeZoneInfo.TZVersion.V1)
567 {
568 uint leapCount = t.LeapCount;
569 uint typeCount = t.TypeCount;
570 uint typeCount2 = t.TypeCount;
571 uint isGmtCount = t.IsGmtCount;
572 uint leapCount2 = t.LeapCount;
573 int num = 8;
574 t.Magic = (uint)num;
575 return;
576 }
577 int num2 = 44;
578 uint timeCount = t.TimeCount;
579 uint timeCount2 = t.TimeCount;
580 uint typeCount3 = t.TypeCount;
581 uint typeCount4 = t.TypeCount;
582 uint typeCount5 = t.TypeCount;
583 uint timeCount3 = t.TimeCount;
584 if (timeCount3 != 0U)
585 {
586 TimeZoneInfo.TZVersion version = t.Version;
587 if (timeCount3 == 0U)
588 {
589 }
591 if (t.TimeCount != 0U)
592 {
593 uint timeCount4 = t.TimeCount;
594 }
595 }
596 int num3;
597 if (t.TypeCount != 0U)
598 {
599 num3 = 1;
600 uint typeCount6 = t.TypeCount;
601 }
603 uint charCount = t.CharCount;
604 uint charCount2 = t.CharCount;
605 uint isStdCount = t.IsStdCount;
606 uint timeCount5 = t.TimeCount;
607 if (isStdCount != 0U)
608 {
609 uint typeCount7 = t.TypeCount;
610 return;
611 }
612 if (t.IsGmtCount != 0U)
613 {
614 uint typeCount8 = t.TypeCount;
615 }
616 if (t.Version != TimeZoneInfo.TZVersion.V1)
617 {
619 }
620 }
621
622 // Token: 0x17000040 RID: 64
623 // (get) Token: 0x06000328 RID: 808 RVA: 0x0000A208 File Offset: 0x00008408
624 public string DisplayName
625 {
626 get
627 {
628 /*
629An exception occurred when decompiling this method (06000328)
630
631ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.TimeZoneInfo::get_DisplayName()
632
633 ---> System.Exception: Basic block has to end with unconditional control flow.
634{
635 IL_0000:
636 brtrue(IL_0000, ldfld:string[exp:bool](TimeZoneInfo::_displayName, ldloc:TimeZoneInfo(this)))
637}
638
639 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
640 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
641 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
642 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
643 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
644 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
645 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
646 --- End of inner exception stack trace ---
647 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
648 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
649*/;
650 }
651 }
652
653 // Token: 0x17000041 RID: 65
654 // (get) Token: 0x06000329 RID: 809 RVA: 0x0000A21C File Offset: 0x0000841C
655 public string StandardName
656 {
657 get
658 {
659 /*
660An exception occurred when decompiling this method (06000329)
661
662ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.TimeZoneInfo::get_StandardName()
663
664 ---> System.Exception: Basic block has to end with unconditional control flow.
665{
666 IL_0000:
667 brtrue(IL_0000, ldfld:string[exp:bool](TimeZoneInfo::_standardDisplayName, ldloc:TimeZoneInfo(this)))
668}
669
670 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
671 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
672 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
673 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
674 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
675 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
676 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
677 --- End of inner exception stack trace ---
678 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
679 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
680*/;
681 }
682 }
683
684 // Token: 0x17000042 RID: 66
685 // (get) Token: 0x0600032A RID: 810 RVA: 0x0000A230 File Offset: 0x00008430
686 public string DaylightName
687 {
688 get
689 {
690 /*
691An exception occurred when decompiling this method (0600032A)
692
693ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.TimeZoneInfo::get_DaylightName()
694
695 ---> System.Exception: Basic block has to end with unconditional control flow.
696{
697 IL_0000:
698 brtrue(IL_0000, ldfld:string[exp:bool](TimeZoneInfo::_daylightDisplayName, ldloc:TimeZoneInfo(this)))
699}
700
701 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
702 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
703 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
704 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
705 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
706 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
707 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
708 --- End of inner exception stack trace ---
709 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
710 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
711*/;
712 }
713 }
714
715 // Token: 0x17000043 RID: 67
716 // (get) Token: 0x0600032B RID: 811 RVA: 0x0000A244 File Offset: 0x00008444
718 {
719 get
720 {
723 return timeSpan;
724 }
725 }
726
727 // Token: 0x17000044 RID: 68
728 // (get) Token: 0x0600032C RID: 812 RVA: 0x0000A25C File Offset: 0x0000845C
730 {
731 get
732 {
733 return this._supportsDaylightSavingTime;
734 }
735 }
736
737 // Token: 0x0600032D RID: 813 RVA: 0x0000A270 File Offset: 0x00008470
744
745 // Token: 0x0600032E RID: 814 RVA: 0x0000A298 File Offset: 0x00008498
747 {
748 if (!true)
749 {
750 }
751 return 1;
752 }
753
754 // Token: 0x0600032F RID: 815 RVA: 0x0000A2AC File Offset: 0x000084AC
756 {
757 if (!true)
758 {
759 }
760 return 1;
761 }
762
763 // Token: 0x06000330 RID: 816 RVA: 0x0000A2C0 File Offset: 0x000084C0
765 {
766 if (!true)
767 {
768 }
769 return 1;
770 }
771
772 // Token: 0x06000331 RID: 817 RVA: 0x0000A2D4 File Offset: 0x000084D4
774 {
775 if (!true)
776 {
777 }
778 return 1;
779 }
780
781 // Token: 0x06000332 RID: 818 RVA: 0x0000A2FC File Offset: 0x000084FC
782 internal bool IsDaylightSavingTime(DateTime dateTime, TimeZoneInfoOptions flags)
783 {
784 if (!true)
785 {
786 }
787 bool flag;
788 return flag;
789 }
790
791 // Token: 0x06000333 RID: 819 RVA: 0x0000A310 File Offset: 0x00008510
793 {
794 while (this._supportsDaylightSavingTime)
795 {
797 if (adjustmentRules == null)
798 {
799 return;
800 }
801 if (cachedData._localTimeZone == null)
802 {
803 TimeZoneInfo timeZoneInfo = cachedData.CreateLocal();
804 }
805 if (adjustmentRules == null)
806 {
807 }
808 DateTimeKind correspondingKind = cachedData.GetCorrespondingKind(this);
809 if (adjustmentRules == null)
810 {
811 }
813 if (adjustmentRule != null)
814 {
816 if (adjustmentRules == null)
817 {
818 }
819 bool flag;
820 return flag;
821 }
822 }
823 }
824
825 // Token: 0x06000334 RID: 820 RVA: 0x0000A364 File Offset: 0x00008564
827 {
828 if (!true)
829 {
830 }
831 return 1;
832 }
833
834 // Token: 0x06000335 RID: 821 RVA: 0x0000A378 File Offset: 0x00008578
836 {
837 /*
838An exception occurred when decompiling this method (06000335)
839
840ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.TimeZoneInfo::ConvertTime(System.DateTime,System.TimeZoneInfo,System.TimeZoneInfo,System.TimeZoneInfoOptions,System.TimeZoneInfo/CachedData)
841
842 ---> System.Exception: Basic block has to end with unconditional control flow.
843{
844 Block_3:
845 brtrue(IL_0000, logicnot:bool(ldloc:DateTimeKind[exp:bool](var_16)))
846}
847
848 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
849 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
850 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
851 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
852 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
853 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
854 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
855 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
856 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
857 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
858 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
859 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
860 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
861 --- End of inner exception stack trace ---
862 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
863 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
864*/;
865 }
866
867 // Token: 0x06000336 RID: 822 RVA: 0x0000A3D8 File Offset: 0x000085D8
868 internal static DateTime ConvertTimeToUtc(DateTime dateTime, TimeZoneInfoOptions flags)
869 {
870 return 1;
871 }
872
873 // Token: 0x06000337 RID: 823 RVA: 0x0000A3EC File Offset: 0x000085EC
875 {
876 if (other != null)
877 {
878 string id = this._id;
879 string id2 = other._id;
880 bool flag = string.Equals(id, id2, StringComparison.OrdinalIgnoreCase);
881 return this.HasSameRules(other);
882 }
883 }
884
885 // Token: 0x06000338 RID: 824 RVA: 0x0000A41C File Offset: 0x0000861C
886 public override bool Equals(object obj)
887 {
888 if (obj != null)
889 {
890 }
891 bool flag;
892 return flag;
893 }
894
895 // Token: 0x06000339 RID: 825 RVA: 0x0000A430 File Offset: 0x00008630
896 public override int GetHashCode()
897 {
898 /*
899An exception occurred when decompiling this method (06000339)
900
901ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.TimeZoneInfo::GetHashCode()
902
903 ---> System.Exception: Basic block has to end with unconditional control flow.
904{
905 IL_0006:
906 stloc:string(var_0_0C, ldfld:string(TimeZoneInfo::_id, ldloc:TimeZoneInfo(this)))
907}
908
909 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
910 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
911 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
912 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
913 --- End of inner exception stack trace ---
914 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
915 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
916*/;
917 }
918
919 // Token: 0x0600033A RID: 826 RVA: 0x0000A44C File Offset: 0x0000864C
921 {
922 while (other == null)
923 {
924 }
926 TimeSpan baseUtcOffset2 = other._baseUtcOffset;
927 bool flag = baseUtcOffset != baseUtcOffset2;
932 if (adjustmentRules2 != null && flag)
933 {
936 return;
937 }
938 }
939
940 // Token: 0x17000045 RID: 69
941 // (get) Token: 0x0600033B RID: 827 RVA: 0x0000A4B8 File Offset: 0x000086B8
942 public static TimeZoneInfo Local
943 {
944 get
945 {
946 if (!true)
947 {
948 }
950 return timeZoneInfo;
951 }
952 }
953
954 // Token: 0x0600033C RID: 828 RVA: 0x0000A4CC File Offset: 0x000086CC
955 public override string ToString()
956 {
957 /*
958An exception occurred when decompiling this method (0600033C)
959
960ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.TimeZoneInfo::ToString()
961
962 ---> System.Exception: Basic block has to end with unconditional control flow.
963{
964 IL_0000:
965 brtrue(IL_0000, ldfld:string[exp:bool](TimeZoneInfo::_displayName, ldloc:TimeZoneInfo(this)))
966}
967
968 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
969 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
970 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
971 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
972 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
973 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
974 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
975 --- End of inner exception stack trace ---
976 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
977 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
978*/;
979 }
980
981 // Token: 0x17000046 RID: 70
982 // (get) Token: 0x0600033D RID: 829 RVA: 0x0000A4E0 File Offset: 0x000086E0
983 public static TimeZoneInfo Utc
984 {
985 get
986 {
987 if (!true)
988 {
989 }
990 return 1;
991 }
992 }
993
994 // Token: 0x0600033E RID: 830 RVA: 0x0000A4F4 File Offset: 0x000086F4
1006
1007 // Token: 0x0600033F RID: 831 RVA: 0x0000207A File Offset: 0x0000027A
1008 public static TimeZoneInfo CreateCustomTimeZone(string id, TimeSpan baseUtcOffset, string displayName, string standardDisplayName)
1009 {
1010 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1011 }
1012
1013 // Token: 0x06000340 RID: 832 RVA: 0x0000A530 File Offset: 0x00008730
1015 {
1016 object obj;
1017 while (daylightDisplayName == null || !true || obj == null || obj != null)
1018 {
1019 }
1020 throw new InvalidCastException();
1021 }
1022
1023 // Token: 0x06000341 RID: 833 RVA: 0x0000A550 File Offset: 0x00008750
1025 {
1026 int num = 1;
1027 string id = this._id;
1030 if (num == 0)
1031 {
1032 }
1034 }
1035
1036 // Token: 0x06000342 RID: 834 RVA: 0x0000A598 File Offset: 0x00008798
1038 {
1039 while (info == null)
1040 {
1041 }
1042 string id = this._id;
1043 info.AddValue("Id", id);
1044 string displayName = this._displayName;
1045 info.AddValue("DisplayName", displayName);
1047 info.AddValue("StandardName", standardDisplayName);
1049 info.AddValue("DaylightName", daylightDisplayName);
1052 info.AddValue("AdjustmentRules", adjustmentRules);
1054 info.AddValue("SupportsDaylightSavingTime", supportsDaylightSavingTime);
1055 }
1056
1057 // Token: 0x06000343 RID: 835 RVA: 0x0000A628 File Offset: 0x00008828
1059 {
1060 do
1061 {
1062 base..ctor();
1063 }
1064 while (info == null);
1065 Type type;
1066 object value = info.GetValue("Id", type);
1067 if (value != null)
1068 {
1069 this._id = value;
1070 return;
1071 }
1072 Type type2;
1073 object value2 = info.GetValue("DisplayName", type2);
1074 if (value2 != null)
1075 {
1077 return;
1078 }
1079 Type type3;
1080 if (info.GetValue("StandardName", type3) != null)
1081 {
1082 return;
1083 }
1084 Type type4;
1085 object value3 = info.GetValue("DaylightName", type4);
1086 if (value3 != null)
1087 {
1089 return;
1090 }
1091 Type type5;
1092 object value4 = info.GetValue("BaseUtcOffset", type5);
1093 Type type6;
1094 object value5 = info.GetValue("AdjustmentRules", type6);
1095 if (value5 != null)
1096 {
1097 if (value5 != null)
1098 {
1100 if (value5 != null)
1101 {
1102 goto IL_009D;
1103 }
1104 }
1105 throw new InvalidCastException();
1106 }
1107 IL_009D:
1108 Type type7;
1109 object value6 = info.GetValue("SupportsDaylightSavingTime", type7);
1110 }
1111
1112 // Token: 0x06000344 RID: 836 RVA: 0x0000A6E8 File Offset: 0x000088E8
1114 {
1115 long num = 0L;
1116 return this.GetAdjustmentRuleForTime(dateTime, num != 0L, ruleIndex);
1117 }
1118
1119 // Token: 0x06000345 RID: 837 RVA: 0x0000A700 File Offset: 0x00008900
1121 {
1122 /*
1123An exception occurred when decompiling this method (06000345)
1124
1125ICSharpCode.Decompiler.DecompilerException: Error decompiling System.TimeZoneInfo/AdjustmentRule System.TimeZoneInfo::GetAdjustmentRuleForTime(System.DateTime,System.Boolean,System.Nullable`1<System.Int32>)
1126
1127 ---> System.Exception: Basic block has to end with unconditional control flow.
1128{
1129 IL_0049:
1130 stfld:bool(Nullable`1::hasValue, ldloc:valuetype System.Nullable`1<int32>[exp:valuetype System.Nullable`1&](ruleIndex), ldloc:class System.TimeZoneInfo/AdjustmentRule[][exp:bool](var_6))
1131}
1132
1133 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
1134 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
1135 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
1136 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
1137 --- End of inner exception stack trace ---
1138 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
1139 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
1140*/;
1141 }
1142
1143 // Token: 0x06000346 RID: 838 RVA: 0x0000A760 File Offset: 0x00008960
1145 {
1146 DateTime dateStart = rule._dateStart;
1147 TimeSpan daylightDelta = previousRule._daylightDelta;
1148 TimeSpan baseUtcOffsetDelta = previousRule._baseUtcOffsetDelta;
1150 DateTime dateStart2 = rule._dateStart;
1151 if (dateStart == null)
1152 {
1153 }
1154 DateTime dateStart3 = rule._dateStart;
1155 if (dateStart == null)
1156 {
1157 }
1158 bool flag = dateOnly >= dateStart3;
1159 DateTime dateEnd = rule._dateEnd;
1160 TimeSpan daylightDelta2 = rule._daylightDelta;
1161 TimeSpan baseUtcOffsetDelta2 = rule._baseUtcOffsetDelta;
1163 DateTime dateEnd2 = rule._dateEnd;
1164 if (dateEnd == null)
1165 {
1166 }
1167 return 1;
1168 }
1169
1170 // Token: 0x06000347 RID: 839 RVA: 0x0000A7F4 File Offset: 0x000089F4
1177
1178 // Token: 0x06000348 RID: 840 RVA: 0x0000A810 File Offset: 0x00008A10
1180 {
1181 long num = 0L;
1184 return dateTime3;
1185 }
1186
1187 // Token: 0x06000349 RID: 841 RVA: 0x0000A82C File Offset: 0x00008A2C
1189 {
1190 /*
1191An exception occurred when decompiling this method (06000349)
1192
1193ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.TimeZoneInfo::ConvertToFromUtc(System.DateTime,System.TimeSpan,System.TimeSpan,System.Boolean)
1194
1195 ---> System.Exception: Basic block has to end with unconditional control flow.
1196{
1197 IL_000C:
1198 stloc:TimeSpan(var_2_1E, call:TimeSpan(TimeSpan::Negate, call:TimeSpan[exp:valuetype System.TimeSpan&](TimeSpan::op_Addition, call:TimeSpan(TimeSpan::op_Addition, ldloc:TimeSpan(var_1_08), ldloc:TimeSpan(daylightDelta)), ldloc:TimeSpan(baseUtcOffsetDelta))))
1199}
1200
1201 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
1202 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
1203 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
1204 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
1205 --- End of inner exception stack trace ---
1206 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
1207 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
1208*/;
1209 }
1210
1211 // Token: 0x0600034A RID: 842 RVA: 0x0000A858 File Offset: 0x00008A58
1213 {
1214 /*
1215An exception occurred when decompiling this method (0600034A)
1216
1217ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.TimeZoneInfo::ConvertUtcToTimeZone(System.Int64,System.TimeZoneInfo,System.Boolean)
1218
1219 ---> System.Exception: Basic block has to end with unconditional control flow.
1220{
1221 IL_0000:
1222 brtrue(IL_0000, ldc.i4:bool(1))
1223}
1224
1225 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
1226 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
1227 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
1228 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
1229 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
1230 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
1231 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
1232 --- End of inner exception stack trace ---
1233 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
1234 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
1235*/;
1236 }
1237
1238 // Token: 0x0600034B RID: 843 RVA: 0x0000A868 File Offset: 0x00008A68
1240 {
1241 /*
1242An exception occurred when decompiling this method (0600034B)
1243
1244ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Globalization.DaylightTimeStruct System.TimeZoneInfo::GetDaylightTime(System.Int32,System.TimeZoneInfo/AdjustmentRule,System.Nullable`1<System.Int32>)
1245
1246 ---> System.Exception: Basic block has to end with unconditional control flow.
1247{
1248 IL_0070:
1249 stloc:bool(var_14_7B, ldfld:bool(TransitionTime::_isFixedDateRule, ldfld:TransitionTime[exp:valuetype System.TimeZoneInfo/TransitionTime&](AdjustmentRule::_daylightTransitionStart, ldloc:AdjustmentRule(rule))))
1250 stloc:DateTime(var_16_88, ldfld:DateTime(TransitionTime::_timeOfDay, ldfld:TransitionTime[exp:valuetype System.TimeZoneInfo/TransitionTime&](AdjustmentRule::_daylightTransitionEnd, ldloc:AdjustmentRule(rule))))
1251 stloc:bool(var_17_95, ldfld:bool(TransitionTime::_isFixedDateRule, ldfld:TransitionTime[exp:valuetype System.TimeZoneInfo/TransitionTime&](AdjustmentRule::_daylightTransitionEnd, ldloc:AdjustmentRule(rule))))
1252}
1253
1254 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
1255 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
1256 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
1257 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
1258 --- End of inner exception stack trace ---
1259 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
1260 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
1261*/;
1262 }
1263
1264 // Token: 0x0600034C RID: 844 RVA: 0x0000A90C File Offset: 0x00008B0C
1266 {
1267 int num = 1;
1268 if (time != null)
1269 {
1270 }
1271 if (num == 0)
1272 {
1273 }
1274 DateTime dateStart = rule._dateStart;
1275 if (num == 0)
1276 {
1277 }
1278 bool flag;
1279 return flag;
1280 }
1281
1282 // Token: 0x0600034D RID: 845 RVA: 0x0000A984 File Offset: 0x00008B84
1284 {
1285 /*
1286An exception occurred when decompiling this method (0600034D)
1287
1288ICSharpCode.Decompiler.DecompilerException: Error decompiling System.TimeSpan System.TimeZoneInfo::GetDaylightSavingsStartOffsetFromUtc(System.TimeSpan,System.TimeZoneInfo/AdjustmentRule,System.Nullable`1<System.Int32>)
1289
1290 ---> System.Exception: Basic block has to end with unconditional control flow.
1291{
1292 IL_002D:
1293 stloc:TimeSpan(var_5_33, ldfld:TimeSpan(AdjustmentRule::_baseUtcOffsetDelta, ldloc:AdjustmentRule(var_1)))
1294 brtrue(IL_0000, ldloc:bool(var_0_06))
1295}
1296
1297 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
1298 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
1299 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
1300 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
1301 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
1302 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
1303 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
1304 --- End of inner exception stack trace ---
1305 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
1306 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
1307*/;
1308 }
1309
1310 // Token: 0x0600034E RID: 846 RVA: 0x0000A9C8 File Offset: 0x00008BC8
1312 {
1313 TimeSpan baseUtcOffsetDelta = rule._baseUtcOffsetDelta;
1314 if (!true)
1315 {
1316 }
1318 TimeSpan daylightDelta = rule._daylightDelta;
1320 return 1;
1321 }
1322
1323 // Token: 0x0600034F RID: 847 RVA: 0x0000A9F8 File Offset: 0x00008BF8
1325 {
1326 bool flag4;
1327 if (utc != null)
1328 {
1330 if (adjustmentRule != null)
1331 {
1333 TimeSpan baseUtcOffsetDelta = adjustmentRule._baseUtcOffsetDelta;
1337 if (adjustmentRule2 != null)
1338 {
1340 bool flag3 = adjustmentRule2.IsEndDateMarkerForEndOfYear();
1341 }
1342 }
1346 return flag4;
1347 }
1348 return flag4;
1349 }
1350
1351 // Token: 0x06000350 RID: 848 RVA: 0x0000AB1C File Offset: 0x00008D1C
1353 {
1354 if (!true)
1355 {
1356 DateTime dateTime;
1357 int year = dateTime.Year;
1358 }
1359 if (!true)
1360 {
1361 }
1362 if (!true)
1363 {
1364 }
1365 return true;
1366 }
1367
1368 // Token: 0x06000351 RID: 849 RVA: 0x0000AB58 File Offset: 0x00008D58
1370 {
1371 int num = 1;
1372 if (time == null || num == 0)
1373 {
1374 }
1375 if (num == 0)
1376 {
1377 }
1378 if (num == 0)
1379 {
1380 }
1381 if (num == 0)
1382 {
1383 }
1384 if (num == 0)
1385 {
1386 }
1387 if (num == 0)
1388 {
1389 }
1390 int num2 = 1;
1392 DateTime dateTime = dateTime2.AddYears(num2);
1393 if (num == 0)
1394 {
1395 }
1396 if (num == 0)
1397 {
1398 }
1399 bool flag;
1400 return flag;
1401 }
1402
1403 // Token: 0x06000352 RID: 850 RVA: 0x0000ABA0 File Offset: 0x00008DA0
1405 {
1406 int num = 1;
1407 if (time == null || num == 0)
1408 {
1409 }
1410 if (num == 0)
1411 {
1412 }
1413 if (num == 0)
1414 {
1415 }
1416 if (num == 0)
1417 {
1418 }
1419 if (num == 0)
1420 {
1421 }
1422 if (num == 0)
1423 {
1424 }
1425 int num2 = 1;
1427 DateTime dateTime = dateTime2.AddYears(num2);
1428 if (num == 0)
1429 {
1430 }
1431 if (num == 0)
1432 {
1433 }
1434 bool flag;
1435 return flag;
1436 }
1437
1438 // Token: 0x06000353 RID: 851 RVA: 0x0000ABE8 File Offset: 0x00008DE8
1440 {
1441 /*
1442An exception occurred when decompiling this method (06000353)
1443
1444ICSharpCode.Decompiler.DecompilerException: Error decompiling System.TimeSpan System.TimeZoneInfo::GetUtcOffset(System.DateTime,System.TimeZoneInfo,System.TimeZoneInfoOptions)
1445
1446 ---> System.Exception: Basic block has to end with unconditional control flow.
1447{
1448 IL_002A:
1449 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
1450}
1451
1452 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
1453 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
1454 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
1455 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
1456 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
1457 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
1458 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
1459 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
1460 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
1461 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
1462 --- End of inner exception stack trace ---
1463 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
1464 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
1465*/;
1466 }
1467
1468 // Token: 0x06000354 RID: 852 RVA: 0x0000AC24 File Offset: 0x00008E24
1470 {
1471 if (!true)
1472 {
1473 }
1474 return 1;
1475 }
1476
1477 // Token: 0x06000355 RID: 853 RVA: 0x0000AC38 File Offset: 0x00008E38
1479 {
1480 if (!true)
1481 {
1482 }
1483 return 1;
1484 }
1485
1486 // Token: 0x06000356 RID: 854 RVA: 0x0000AC4C File Offset: 0x00008E4C
1488 {
1489 /*
1490An exception occurred when decompiling this method (06000356)
1491
1492ICSharpCode.Decompiler.DecompilerException: Error decompiling System.TimeSpan System.TimeZoneInfo::GetUtcOffsetFromUtc(System.DateTime,System.TimeZoneInfo,System.Boolean,System.Boolean)
1493
1494 ---> System.Exception: Basic block has to end with unconditional control flow.
1495{
1496 IL_0025:
1497 stloc:TimeSpan(var_8_2C, ldfld:TimeSpan(AdjustmentRule::_baseUtcOffsetDelta, ldloc:AdjustmentRule(var_6)))
1498 stloc:TimeSpan(var_9_36, call:TimeSpan(TimeSpan::op_Addition, ldloc:TimeSpan(var_1_08), ldloc:TimeSpan(var_8_2C)))
1499 stloc:bool(var_10_3F, callgetter:bool(AdjustmentRule::get_HasDaylightSaving, ldloc:AdjustmentRule(var_6)))
1500 stloc:TimeSpan(var_11_47, ldfld:TimeSpan(TimeZoneInfo::_baseUtcOffset, ldloc:TimeZoneInfo(zone)))
1501}
1502
1503 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
1504 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
1505 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
1506 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
1507 --- End of inner exception stack trace ---
1508 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
1509 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
1510*/;
1511 }
1512
1513 // Token: 0x06000357 RID: 855 RVA: 0x0000ACA4 File Offset: 0x00008EA4
1515 {
1516 /*
1517An exception occurred when decompiling this method (06000357)
1518
1519ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.TimeZoneInfo::TransitionTimeToDateTime(System.Int32,System.TimeZoneInfo/TransitionTime)
1520
1521 ---> System.Exception: Basic block has to end with unconditional control flow.
1522{
1523 IL_0028:
1524 stloc:int32(var_8_2F, call:int32(DateTime::DaysInMonth, ldloc:int32(year), ldloc:uint8[exp:int32](var_0)))
1525}
1526
1527 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
1528 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
1529 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
1530 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
1531 --- End of inner exception stack trace ---
1532 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
1533 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
1534*/;
1535 }
1536
1537 // Token: 0x06000358 RID: 856 RVA: 0x0000ACE4 File Offset: 0x00008EE4
1539 {
1540 if (id == null)
1541 {
1542 return;
1543 }
1544 int stringLength = id._stringLength;
1545 if (stringLength == 0)
1546 {
1547 string text = SR.Format("The specified ID parameter '{0}' is not supported.", id);
1548 return;
1549 }
1550 if (stringLength == 0)
1551 {
1552 }
1554 long num = 63445L;
1555 if (num == 0L)
1556 {
1557 if (adjustmentRules != null && num != 0L)
1558 {
1559 int num2 = 1;
1561 DateTime dateEnd = adjustmentRules._dateEnd;
1562 long num3 = 0L;
1564 {
1565 return;
1566 }
1567 if (dateEnd == null)
1568 {
1569 }
1570 if (num3 == 0L || dateEnd == null)
1571 {
1572 }
1574 }
1575 return;
1576 }
1577 }
1578
1579 // Token: 0x06000359 RID: 857 RVA: 0x0000AD58 File Offset: 0x00008F58
1581 {
1582 if (!true)
1583 {
1584 }
1585 return true;
1586 }
1587
1588 // Token: 0x0600035A RID: 858 RVA: 0x0000AD70 File Offset: 0x00008F70
1590 {
1591 /*
1592An exception occurred when decompiling this method (0600035A)
1593
1594ICSharpCode.Decompiler.DecompilerException: Error decompiling System.TimeSpan System.TimeZoneInfo::GetUtcOffset(System.TimeSpan,System.TimeZoneInfo/AdjustmentRule)
1595
1596 ---> System.Exception: Basic block has to end with unconditional control flow.
1597{
1598 IL_000C:
1599 stloc:TimeSpan(var_2_13, call:TimeSpan(TimeSpan::op_Addition, ldloc:TimeSpan(baseUtcOffset), ldloc:TimeSpan(var_1_08)))
1600 stloc:bool(var_3_1A, callgetter:bool(AdjustmentRule::get_HasDaylightSaving, ldloc:AdjustmentRule(adjustmentRule)))
1601 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
1602}
1603
1604 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
1605 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
1606 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
1607 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
1608 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
1609 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
1610 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
1611 --- End of inner exception stack trace ---
1612 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
1613 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
1614*/;
1615 }
1616
1617 // Token: 0x0600035B RID: 859 RVA: 0x0000AD9C File Offset: 0x00008F9C
1626
1627 // Token: 0x0600035C RID: 860 RVA: 0x0000ADB4 File Offset: 0x00008FB4
1629 {
1630 if (!true)
1631 {
1632 }
1633 }
1634
1635 // Token: 0x0600035D RID: 861 RVA: 0x0000207A File Offset: 0x0000027A
1636 private static string GetTimeZoneDirectoryUnity()
1637 {
1638 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1639 }
1640
1641 // Token: 0x0600035E RID: 862 RVA: 0x0000ADC8 File Offset: 0x00008FC8
1642 private static List<TimeZoneInfo.AdjustmentRule> CreateAdjustmentRule(int year, [Out] long[] data, [Out] string[] names, string standardNameCurrentYear, string daylightNameCurrentYear)
1643 {
1644 int num = 12;
1645 int num2 = DateTime.DaysInMonth(42170256, num);
1646 int num3 = 12;
1648 DateTime dateTime;
1649 int month = dateTime.Month;
1650 int year2 = dateTime.Year;
1652 int month2 = dateTime2.Month;
1653 TimeSpan timeOfDay = dateTime2.TimeOfDay;
1655 int month3 = dateTime3.Month;
1657 int month4 = dateTime4.Month;
1658 TimeSpan timeOfDay2 = dateTime2.TimeOfDay;
1660 int month5 = dateTime5.Month;
1661 int year3 = dateTime5.Year;
1662 return 41463808;
1663 }
1664
1665 // Token: 0x0600035F RID: 863 RVA: 0x0000AEC0 File Offset: 0x000090C0
1667 {
1668 if (!true)
1669 {
1670 }
1671 int year = DateTime.UtcNow.Year;
1672 int num = 43;
1673 if ("hh\\:mm" != null)
1674 {
1676 if (list._size == 0)
1677 {
1678 }
1680 int size = list2._size;
1681 if (size == 0)
1682 {
1683 }
1684 if (year != 0 || size == 0)
1685 {
1686 }
1687 }
1688 if (num == 0)
1689 {
1690 }
1692 return timeZoneInfo;
1693 }
1694
1695 // Token: 0x06000360 RID: 864 RVA: 0x0000AF0C File Offset: 0x0000910C
1696 // Note: this type is marked as 'beforefieldinit'.
1698 {
1699 if (!true)
1700 {
1701 }
1704 }
1705
1706 // Token: 0x06000361 RID: 865 RVA: 0x0000AF28 File Offset: 0x00009128
1707 internal TimeZoneInfo()
1708 {
1709 throw new NotSupportedException();
1710 }
1711
1712 // Token: 0x040001A3 RID: 419
1713 private readonly string _id;
1714
1715 // Token: 0x040001A4 RID: 420
1716 private readonly string _displayName;
1717
1718 // Token: 0x040001A5 RID: 421
1720
1721 // Token: 0x040001A6 RID: 422
1723
1724 // Token: 0x040001A7 RID: 423
1726
1727 // Token: 0x040001A8 RID: 424
1729
1730 // Token: 0x040001A9 RID: 425
1732
1733 // Token: 0x040001AA RID: 426
1735
1736 // Token: 0x040001AB RID: 427
1738
1739 // Token: 0x040001AC RID: 428
1741
1742 // Token: 0x040001AD RID: 429
1744
1745 // Token: 0x040001AE RID: 430
1747
1748 // Token: 0x040001AF RID: 431
1750
1751 // Token: 0x0200006B RID: 107
1752 private struct TZifType
1753 {
1754 // Token: 0x06000362 RID: 866 RVA: 0x0000AF3C File Offset: 0x0000913C
1755 public TZifType(byte[] data, int index)
1756 {
1757 while (data == null)
1758 {
1759 }
1760 }
1761
1762 // Token: 0x040001B0 RID: 432
1764
1765 // Token: 0x040001B1 RID: 433
1766 public readonly bool IsDst;
1767
1768 // Token: 0x040001B2 RID: 434
1770 }
1771
1772 // Token: 0x0200006C RID: 108
1773 private struct TZifHead
1774 {
1775 // Token: 0x06000363 RID: 867 RVA: 0x0000AF50 File Offset: 0x00009150
1776 public TZifHead(byte[] data, int index)
1777 {
1778 int num = 1;
1779 if (data != null)
1780 {
1781 if (num == 0)
1782 {
1783 }
1784 this.Magic = (uint)num;
1786 if (num == 0)
1787 {
1788 }
1789 this.IsGmtCount = (uint)num;
1790 this.IsStdCount = (uint)num;
1791 this.LeapCount = (uint)num;
1792 this.TimeCount = (uint)num;
1793 this.TypeCount = (uint)num;
1794 this.CharCount = (uint)num;
1795 return;
1796 }
1797 }
1798
1799 // Token: 0x040001B3 RID: 435
1800 public readonly uint Magic;
1801
1802 // Token: 0x040001B4 RID: 436
1804
1805 // Token: 0x040001B5 RID: 437
1807
1808 // Token: 0x040001B6 RID: 438
1810
1811 // Token: 0x040001B7 RID: 439
1812 public readonly uint LeapCount;
1813
1814 // Token: 0x040001B8 RID: 440
1815 public readonly uint TimeCount;
1816
1817 // Token: 0x040001B9 RID: 441
1818 public readonly uint TypeCount;
1819
1820 // Token: 0x040001BA RID: 442
1821 public readonly uint CharCount;
1822 }
1823
1824 // Token: 0x0200006D RID: 109
1825 private enum TZVersion : byte
1826 {
1827 // Token: 0x040001BC RID: 444
1828 V1,
1829 // Token: 0x040001BD RID: 445
1830 V2,
1831 // Token: 0x040001BE RID: 446
1832 V3
1833 }
1834
1835 // Token: 0x0200006E RID: 110
1836 [Serializable]
1837 public sealed class AdjustmentRule : IEquatable<TimeZoneInfo.AdjustmentRule>, ISerializable, IDeserializationCallback
1838 {
1839 // Token: 0x17000047 RID: 71
1840 // (get) Token: 0x06000364 RID: 868 RVA: 0x0000AFA8 File Offset: 0x000091A8
1842 {
1843 get
1844 {
1846 DateTime dateTime;
1847 return dateTime;
1848 }
1849 }
1850
1851 // Token: 0x17000048 RID: 72
1852 // (get) Token: 0x06000365 RID: 869 RVA: 0x0000AFC0 File Offset: 0x000091C0
1854 {
1855 get
1856 {
1857 DateTime dateEnd = this._dateEnd;
1858 DateTime dateTime;
1859 return dateTime;
1860 }
1861 }
1862
1863 // Token: 0x17000049 RID: 73
1864 // (get) Token: 0x06000366 RID: 870 RVA: 0x0000AFD8 File Offset: 0x000091D8
1866 {
1867 get
1868 {
1871 return timeSpan;
1872 }
1873 }
1874
1875 // Token: 0x1700004A RID: 74
1876 // (get) Token: 0x06000367 RID: 871 RVA: 0x0000AFF0 File Offset: 0x000091F0
1887
1888 // Token: 0x1700004B RID: 75
1889 // (get) Token: 0x06000368 RID: 872 RVA: 0x0000B014 File Offset: 0x00009214
1902
1903 // Token: 0x1700004C RID: 76
1904 // (get) Token: 0x06000369 RID: 873 RVA: 0x0000B048 File Offset: 0x00009248
1906 {
1907 get
1908 {
1911 return timeSpan;
1912 }
1913 }
1914
1915 // Token: 0x1700004D RID: 77
1916 // (get) Token: 0x0600036A RID: 874 RVA: 0x0000B060 File Offset: 0x00009260
1918 {
1919 get
1920 {
1921 return this._noDaylightTransitions;
1922 }
1923 }
1924
1925 // Token: 0x1700004E RID: 78
1926 // (get) Token: 0x0600036B RID: 875 RVA: 0x0000B074 File Offset: 0x00009274
1927 internal bool HasDaylightSaving
1928 {
1929 get
1930 {
1931 int num = 1;
1933 if (num == 0)
1934 {
1935 }
1936 bool isFixedDateRule = this._daylightTransitionStart._isFixedDateRule;
1938 if (!isFixedDateRule)
1939 {
1940 }
1941 bool isFixedDateRule2 = this._daylightTransitionEnd._isFixedDateRule;
1942 DateTime timeOfDay = this._daylightTransitionEnd._timeOfDay;
1944 if (!isFixedDateRule2)
1945 {
1946 }
1947 bool flag;
1948 return flag;
1949 }
1950 }
1951
1952 // Token: 0x0600036C RID: 876 RVA: 0x0000B0D4 File Offset: 0x000092D4
1954 {
1955 int num = 1;
1956 if (other != null)
1957 {
1959 DateTime dateStart2 = other._dateStart;
1960 if (num == 0)
1961 {
1962 }
1963 DateTime dateEnd = this._dateEnd;
1964 DateTime dateEnd2 = other._dateEnd;
1965 if (num == 0)
1966 {
1967 }
1968 bool flag = dateEnd == dateEnd2;
1970 TimeSpan daylightDelta2 = other._daylightDelta;
1971 if (num == 0)
1972 {
1973 }
1976 TimeSpan baseUtcOffsetDelta2 = other._baseUtcOffsetDelta;
1977 if (num == 0)
1978 {
1979 }
1981 bool isFixedDateRule = other._daylightTransitionEnd._isFixedDateRule;
1982 DateTime timeOfDay = other._daylightTransitionEnd._timeOfDay;
1983 bool isFixedDateRule2 = other._daylightTransitionStart._isFixedDateRule;
1984 bool flag4;
1985 return flag4;
1986 }
1987 }
1988
1989 // Token: 0x0600036D RID: 877 RVA: 0x0000B180 File Offset: 0x00009380
1990 public override int GetHashCode()
1991 {
1992 int num;
1993 return num;
1994 }
1995
1996 // Token: 0x0600036E RID: 878 RVA: 0x0000B190 File Offset: 0x00009390
2011
2012 // Token: 0x0600036F RID: 879 RVA: 0x0000B200 File Offset: 0x00009400
2014 {
2015 /*
2016An exception occurred when decompiling this method (0600036F)
2017
2018ICSharpCode.Decompiler.DecompilerException: Error decompiling System.TimeZoneInfo/AdjustmentRule System.TimeZoneInfo/AdjustmentRule::CreateAdjustmentRule(System.DateTime,System.DateTime,System.TimeSpan,System.TimeZoneInfo/TransitionTime,System.TimeZoneInfo/TransitionTime)
2019
2020 ---> System.Exception: Basic block has to end with unconditional control flow.
2021{
2022 IL_0000:
2023 brtrue(IL_0000, ldfld:bool(TransitionTime::_isFixedDateRule, ldloc:TransitionTime[exp:valuetype System.TimeZoneInfo/TransitionTime&](daylightTransitionStart)))
2024}
2025
2026 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
2027 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
2028 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
2029 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
2030 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
2031 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
2032 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
2033 --- End of inner exception stack trace ---
2034 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
2035 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
2036*/;
2037 }
2038
2039 // Token: 0x06000370 RID: 880 RVA: 0x0000B214 File Offset: 0x00009414
2041 {
2042 /*
2043An exception occurred when decompiling this method (06000370)
2044
2045ICSharpCode.Decompiler.DecompilerException: Error decompiling System.TimeZoneInfo/AdjustmentRule System.TimeZoneInfo/AdjustmentRule::CreateAdjustmentRule(System.DateTime,System.DateTime,System.TimeSpan,System.TimeZoneInfo/TransitionTime,System.TimeZoneInfo/TransitionTime,System.TimeSpan,System.Boolean)
2046
2047 ---> System.Exception: Basic block has to end with unconditional control flow.
2048{
2049 Block_0:
2050 stloc:bool(var_0_06, ldfld:bool(TransitionTime::_isFixedDateRule, ldloc:TransitionTime[exp:valuetype System.TimeZoneInfo/TransitionTime&](daylightTransitionStart)))
2051}
2052
2053 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
2054 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
2055 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
2056 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
2057 --- End of inner exception stack trace ---
2058 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
2059 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
2060*/;
2061 }
2062
2063 // Token: 0x06000371 RID: 881 RVA: 0x0000B228 File Offset: 0x00009428
2065 {
2066 while (!this._noDaylightTransitions)
2067 {
2068 byte month = this._daylightTransitionStart._month;
2069 byte day = this._daylightTransitionStart._day;
2071 int num;
2072 if (num != 0)
2073 {
2074 return;
2075 }
2077 int num2;
2078 if (num2 != 0)
2079 {
2080 return;
2081 }
2083 int num3;
2084 if (num3 != 0)
2085 {
2086 return;
2087 }
2088 }
2089 }
2090
2091 // Token: 0x06000372 RID: 882 RVA: 0x0000B27C File Offset: 0x0000947C
2093 {
2094 while (!this._noDaylightTransitions)
2095 {
2096 byte month = this._daylightTransitionEnd._month;
2097 byte day = this._daylightTransitionEnd._day;
2099 int num;
2100 if (num != 0)
2101 {
2102 return;
2103 }
2105 int num2;
2106 if (num2 != 0)
2107 {
2108 return;
2109 }
2111 int num3;
2112 if (num3 != 0)
2113 {
2114 return;
2115 }
2116 }
2117 }
2118
2119 // Token: 0x06000373 RID: 883 RVA: 0x0000B2D0 File Offset: 0x000094D0
2121 {
2123 if (dateTimeKind != DateTimeKind.Unspecified)
2124 {
2125 }
2127 if (dateTimeKind2 != DateTimeKind.Unspecified)
2128 {
2129 }
2130 bool isFixedDateRule = daylightTransitionEnd._isFixedDateRule;
2131 if (!isFixedDateRule)
2132 {
2133 }
2134 long num = 63445L;
2135 if (!isFixedDateRule)
2136 {
2137 if (!isFixedDateRule)
2138 {
2139 }
2141 if (dateTimeKind3 != DateTimeKind.Unspecified || num == 0L)
2142 {
2143 }
2145 if (dateTimeKind4 != DateTimeKind.Unspecified || num == 0L)
2146 {
2147 }
2148 return;
2149 }
2150 }
2151
2152 // Token: 0x06000374 RID: 884 RVA: 0x0000B318 File Offset: 0x00009518
2154 {
2155 bool isFixedDateRule = this._daylightTransitionStart._isFixedDateRule;
2157 DateTime dateEnd = this._dateEnd;
2159 bool isFixedDateRule2 = this._daylightTransitionEnd._isFixedDateRule;
2160 DateTime timeOfDay = this._daylightTransitionEnd._timeOfDay;
2162 }
2163
2164 // Token: 0x06000375 RID: 885 RVA: 0x0000B36C File Offset: 0x0000956C
2166 {
2167 while (info == null)
2168 {
2169 }
2171 info.AddValue("DateStart", dateStart);
2172 DateTime dateEnd = this._dateEnd;
2173 info.AddValue("DateEnd", dateEnd);
2175 bool isFixedDateRule = this._daylightTransitionStart._isFixedDateRule;
2176 bool isFixedDateRule2 = this._daylightTransitionEnd._isFixedDateRule;
2177 DateTime timeOfDay = this._daylightTransitionEnd._timeOfDay;
2180 info.AddValue("NoDaylightTransitions", noDaylightTransitions);
2181 }
2182
2183 // Token: 0x06000376 RID: 886 RVA: 0x0000B3EC File Offset: 0x000095EC
2185 {
2186 do
2187 {
2188 base..ctor();
2189 }
2190 while (info == null);
2191 if (!true)
2192 {
2193 }
2194 Type type;
2195 object value = info.GetValue("DateStart", type);
2196 Type type2;
2197 object value2 = info.GetValue("DateEnd", type2);
2198 Type type3;
2199 object value3 = info.GetValue("DaylightDelta", type3);
2200 Type type4;
2201 object value4 = info.GetValue("DaylightTransitionStart", type4);
2202 Type type5;
2203 object value5 = info.GetValue("DaylightTransitionEnd", type5);
2204 Type type6;
2205 if (info.GetValueNoThrow("BaseUtcOffsetDelta", type6) != null)
2206 {
2207 }
2208 Type type7;
2209 if (info.GetValueNoThrow("NoDaylightTransitions", type7) != null)
2210 {
2211 }
2212 }
2213
2214 // Token: 0x06000377 RID: 887 RVA: 0x0000B470 File Offset: 0x00009670
2216 {
2217 throw new NotSupportedException();
2218 }
2219
2220 // Token: 0x040001BF RID: 447
2222
2223 // Token: 0x040001C0 RID: 448
2225
2226 // Token: 0x040001C1 RID: 449
2228
2229 // Token: 0x040001C2 RID: 450
2231
2232 // Token: 0x040001C3 RID: 451
2234
2235 // Token: 0x040001C4 RID: 452
2237
2238 // Token: 0x040001C5 RID: 453
2240 }
2241
2242 // Token: 0x0200006F RID: 111
2243 [Serializable]
2244 public readonly struct TransitionTime : IEquatable<TimeZoneInfo.TransitionTime>, ISerializable, IDeserializationCallback
2245 {
2246 // Token: 0x1700004F RID: 79
2247 // (get) Token: 0x06000378 RID: 888 RVA: 0x0000B484 File Offset: 0x00009684
2249 {
2250 get
2251 {
2252 DateTime dateTime;
2253 return dateTime;
2254 }
2255 }
2256
2257 // Token: 0x17000050 RID: 80
2258 // (get) Token: 0x06000379 RID: 889 RVA: 0x0000B494 File Offset: 0x00009694
2259 public int Month
2260 {
2261 get
2262 {
2263 /*
2264An exception occurred when decompiling this method (06000379)
2265
2266ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.TimeZoneInfo/TransitionTime::get_Month()
2267
2268 ---> System.Exception: Basic block has to end with unconditional control flow.
2269{
2270 Block_0:
2271 stloc:uint8(var_0_06, ldfld:uint8(TransitionTime::_month, ldloc:valuetype System.TimeZoneInfo/TransitionTime&(this)))
2272}
2273
2274 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
2275 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
2276 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
2277 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
2278 --- End of inner exception stack trace ---
2279 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
2280 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
2281*/;
2282 }
2283 }
2284
2285 // Token: 0x17000051 RID: 81
2286 // (get) Token: 0x0600037A RID: 890 RVA: 0x0000B4A8 File Offset: 0x000096A8
2287 public int Week
2288 {
2289 get
2290 {
2291 /*
2292An exception occurred when decompiling this method (0600037A)
2293
2294ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.TimeZoneInfo/TransitionTime::get_Week()
2295
2296 ---> System.Exception: Basic block has to end with unconditional control flow.
2297{
2298 Block_0:
2299 stloc:uint8(var_0_06, ldfld:uint8(TransitionTime::_week, ldloc:valuetype System.TimeZoneInfo/TransitionTime&(this)))
2300}
2301
2302 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
2303 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
2304 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
2305 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
2306 --- End of inner exception stack trace ---
2307 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
2308 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
2309*/;
2310 }
2311 }
2312
2313 // Token: 0x17000052 RID: 82
2314 // (get) Token: 0x0600037B RID: 891 RVA: 0x0000B4BC File Offset: 0x000096BC
2315 public int Day
2316 {
2317 get
2318 {
2319 /*
2320An exception occurred when decompiling this method (0600037B)
2321
2322ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.TimeZoneInfo/TransitionTime::get_Day()
2323
2324 ---> System.Exception: Basic block has to end with unconditional control flow.
2325{
2326 Block_0:
2327 stloc:uint8(var_0_06, ldfld:uint8(TransitionTime::_day, ldloc:valuetype System.TimeZoneInfo/TransitionTime&(this)))
2328}
2329
2330 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
2331 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
2332 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
2333 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
2334 --- End of inner exception stack trace ---
2335 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
2336 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
2337*/;
2338 }
2339 }
2340
2341 // Token: 0x17000053 RID: 83
2342 // (get) Token: 0x0600037C RID: 892 RVA: 0x0000B4D0 File Offset: 0x000096D0
2344 {
2345 get
2346 {
2347 return this._dayOfWeek;
2348 }
2349 }
2350
2351 // Token: 0x17000054 RID: 84
2352 // (get) Token: 0x0600037D RID: 893 RVA: 0x0000B4E4 File Offset: 0x000096E4
2354 {
2355 get
2356 {
2357 return this._isFixedDateRule;
2358 }
2359 }
2360
2361 // Token: 0x0600037E RID: 894 RVA: 0x0000B4F8 File Offset: 0x000096F8
2362 public override bool Equals(object obj)
2363 {
2364 if (obj != null)
2365 {
2366 }
2367 bool flag;
2368 return flag;
2369 }
2370
2371 // Token: 0x0600037F RID: 895 RVA: 0x0000B50C File Offset: 0x0000970C
2373 {
2374 bool isFixedDateRule = t1._isFixedDateRule;
2375 bool flag;
2376 return flag;
2377 }
2378
2379 // Token: 0x06000380 RID: 896 RVA: 0x0000B524 File Offset: 0x00009724
2381 {
2382 bool isFixedDateRule = other._isFixedDateRule;
2384 byte month = this._month;
2385 byte month2 = other._month;
2386 bool isFixedDateRule3 = other._isFixedDateRule;
2387 byte week = this._week;
2388 byte week2 = other._week;
2389 DayOfWeek dayOfWeek = this._dayOfWeek;
2390 DayOfWeek dayOfWeek2 = other._dayOfWeek;
2391 bool flag;
2392 return flag;
2393 }
2394
2395 // Token: 0x06000381 RID: 897 RVA: 0x0000B58C File Offset: 0x0000978C
2396 public override int GetHashCode()
2397 {
2398 /*
2399An exception occurred when decompiling this method (06000381)
2400
2401ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.TimeZoneInfo/TransitionTime::GetHashCode()
2402
2403 ---> System.Exception: Basic block has to end with unconditional control flow.
2404{
2405 Block_0:
2406 stloc:uint8(var_0_06, ldfld:uint8(TransitionTime::_month, ldloc:valuetype System.TimeZoneInfo/TransitionTime&(this)))
2407 stloc:uint8(var_1_0D, ldfld:uint8(TransitionTime::_week, ldloc:valuetype System.TimeZoneInfo/TransitionTime&(this)))
2408}
2409
2410 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
2411 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
2412 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
2413 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
2414 --- End of inner exception stack trace ---
2415 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
2416 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
2417*/;
2418 }
2419
2420 // Token: 0x06000382 RID: 898 RVA: 0x0000B5A8 File Offset: 0x000097A8
2421 private TransitionTime(DateTime timeOfDay, int month, int week, int day, DayOfWeek dayOfWeek, bool isFixedDateRule)
2422 {
2425 this._month = (byte)month;
2426 this._week = (byte)week;
2427 this._day = (byte)day;
2428 this._dayOfWeek = dayOfWeek;
2429 }
2430
2431 // Token: 0x06000383 RID: 899 RVA: 0x0000B5E8 File Offset: 0x000097E8
2442
2443 // Token: 0x06000384 RID: 900 RVA: 0x0000B61C File Offset: 0x0000981C
2455
2456 // Token: 0x06000385 RID: 901 RVA: 0x0000B658 File Offset: 0x00009858
2457 private static void ValidateTransitionTime(DateTime timeOfDay, int month, int week, int day, DayOfWeek dayOfWeek)
2458 {
2459 if (timeOfDay.Kind != DateTimeKind.Unspecified)
2460 {
2461 return;
2462 }
2463 if (22859 == 0)
2464 {
2465 return;
2466 }
2467 }
2468
2469 // Token: 0x06000386 RID: 902 RVA: 0x0000B67C File Offset: 0x0000987C
2471 {
2472 byte month = this._month;
2473 byte week = this._week;
2474 byte day = this._day;
2475 DayOfWeek dayOfWeek = this._dayOfWeek;
2476 }
2477
2478 // Token: 0x06000387 RID: 903 RVA: 0x0000B6A8 File Offset: 0x000098A8
2480 {
2481 while (info == null)
2482 {
2483 }
2484 byte month = this._month;
2485 info.AddValue("Month", month);
2486 byte week = this._week;
2487 info.AddValue("Week", week);
2488 byte day = this._day;
2489 info.AddValue("Day", day);
2490 DayOfWeek dayOfWeek = this._dayOfWeek;
2492 info.AddValue("IsFixedDateRule", isFixedDateRule);
2493 }
2494
2495 // Token: 0x06000388 RID: 904 RVA: 0x0000B710 File Offset: 0x00009910
2497 {
2498 while (info == null)
2499 {
2500 }
2501 Type type;
2502 object value = info.GetValue("TimeOfDay", type);
2503 Type type2;
2504 object value2 = info.GetValue("Month", type2);
2505 Type type3;
2506 object value3 = info.GetValue("Week", type3);
2507 Type type4;
2508 object value4 = info.GetValue("Day", type4);
2509 Type type5;
2510 object value5 = info.GetValue("DayOfWeek", type5);
2511 Type type6;
2512 object value6 = info.GetValue("IsFixedDateRule", type6);
2513 }
2514
2515 // Token: 0x040001C6 RID: 454
2517
2518 // Token: 0x040001C7 RID: 455
2519 private readonly byte _month;
2520
2521 // Token: 0x040001C8 RID: 456
2522 private readonly byte _week;
2523
2524 // Token: 0x040001C9 RID: 457
2525 private readonly byte _day;
2526
2527 // Token: 0x040001CA RID: 458
2529
2530 // Token: 0x040001CB RID: 459
2532 }
2533
2534 // Token: 0x02000070 RID: 112
2535 private sealed class CachedData
2536 {
2537 // Token: 0x06000389 RID: 905 RVA: 0x0000B77C File Offset: 0x0000997C
2539 {
2540 if (this._localTimeZone != null)
2541 {
2542 }
2543 if (!true)
2544 {
2545 }
2548 TimeSpan baseUtcOffset = timeZoneInfo._baseUtcOffset;
2549 string id = timeZoneInfo._id;
2550 string displayName = timeZoneInfo._displayName;
2551 string standardDisplayName = timeZoneInfo._standardDisplayName;
2553 long num = 0L;
2554 if (true)
2555 {
2556 Monitor.Exit(this);
2557 }
2558 if (num == 0L)
2559 {
2560 }
2561 throw new OutOfMemoryException();
2562 }
2563
2564 // Token: 0x17000055 RID: 85
2565 // (get) Token: 0x0600038A RID: 906 RVA: 0x0000B7F4 File Offset: 0x000099F4
2567 {
2568 get
2569 {
2571 if (localTimeZone != null)
2572 {
2573 return localTimeZone;
2574 }
2575 return this.CreateLocal();
2576 }
2577 }
2578
2579 // Token: 0x0600038B RID: 907 RVA: 0x0000B814 File Offset: 0x00009A14
2581 {
2582 if (!true)
2583 {
2584 }
2586 return DateTimeKind.Utc;
2587 }
2588
2589 // Token: 0x0600038C RID: 908 RVA: 0x0000B82C File Offset: 0x00009A2C
2590 public CachedData()
2591 {
2592 }
2593
2594 // Token: 0x040001CC RID: 460
2596 }
2597
2598 // Token: 0x02000071 RID: 113
2600 private sealed class <>c__DisplayClass16_0
2601 {
2602 // Token: 0x0600038D RID: 909 RVA: 0x0000B840 File Offset: 0x00009A40
2604 {
2605 }
2606
2607 // Token: 0x0600038E RID: 910 RVA: 0x0000B854 File Offset: 0x00009A54
2608 internal bool <FindTimeZoneId>b__0(string filePath)
2609 {
2610 string text = this.localtimeFilePath;
2611 bool flag = string.Equals(filePath, text, StringComparison.OrdinalIgnoreCase);
2612 string text2 = this.posixrulesFilePath;
2613 bool flag2 = string.Equals(filePath, text2, StringComparison.OrdinalIgnoreCase);
2614 byte[] array = this.buffer;
2615 byte[] array2 = this.rawData;
2617 string text3 = this.timeZoneDirectory;
2618 this.id = filePath;
2619 bool flag4 = filePath.StartsWith(text3, StringComparison.Ordinal);
2620 string text4 = this.id;
2621 int stringLength = this.timeZoneDirectory._stringLength;
2622 string text5 = text4.Substring(stringLength);
2623 this.id = text5;
2624 return true;
2625 }
2626
2627 // Token: 0x040001CD RID: 461
2628 public string localtimeFilePath;
2629
2630 // Token: 0x040001CE RID: 462
2631 public string posixrulesFilePath;
2632
2633 // Token: 0x040001CF RID: 463
2634 public byte[] buffer;
2635
2636 // Token: 0x040001D0 RID: 464
2637 public byte[] rawData;
2638
2639 // Token: 0x040001D1 RID: 465
2640 public string id;
2641
2642 // Token: 0x040001D2 RID: 466
2643 public string timeZoneDirectory;
2644 }
2645
2646 // Token: 0x02000072 RID: 114
2648 [Serializable]
2649 private sealed class <>c
2650 {
2651 // Token: 0x0600038F RID: 911 RVA: 0x0000B8E4 File Offset: 0x00009AE4
2652 // Note: this type is marked as 'beforefieldinit'.
2653 static <>c()
2654 {
2655 }
2656
2657 // Token: 0x06000390 RID: 912 RVA: 0x0000B8F4 File Offset: 0x00009AF4
2658 public <>c()
2659 {
2660 }
2661
2662 // Token: 0x06000391 RID: 913 RVA: 0x0000207A File Offset: 0x0000027A
2663 internal bool <TZif_ParsePosixName>b__34_1(char c)
2664 {
2665 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2666 }
2667
2668 // Token: 0x06000392 RID: 914 RVA: 0x0000B908 File Offset: 0x00009B08
2669 internal bool <TZif_ParsePosixName>b__34_0(char c)
2670 {
2671 if (!true)
2672 {
2673 }
2674 return char.IsDigit(c);
2675 }
2676
2677 // Token: 0x06000393 RID: 915 RVA: 0x0000B920 File Offset: 0x00009B20
2679 {
2680 if (!true)
2681 {
2682 }
2683 return char.IsDigit(c);
2684 }
2685
2686 // Token: 0x06000394 RID: 916 RVA: 0x0000207A File Offset: 0x0000027A
2687 internal bool <TZif_ParsePosixDate>b__37_0(char c)
2688 {
2689 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2690 }
2691
2692 // Token: 0x06000395 RID: 917 RVA: 0x0000207A File Offset: 0x0000027A
2693 internal bool <TZif_ParsePosixTime>b__38_0(char c)
2694 {
2695 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2696 }
2697
2698 // Token: 0x06000396 RID: 918 RVA: 0x0000B938 File Offset: 0x00009B38
2700 {
2701 DateTime dateStart = rule1._dateStart;
2702 DateTime dateStart2 = rule2._dateStart;
2703 int num;
2704 return num;
2705 }
2706
2707 // Token: 0x040001D3 RID: 467
2708 public static readonly TimeZoneInfo.<>c <>9;
2709
2710 // Token: 0x040001D4 RID: 468
2711 public static Func<char, bool> <>9__34_1;
2712
2713 // Token: 0x040001D5 RID: 469
2714 public static Func<char, bool> <>9__34_0;
2715
2716 // Token: 0x040001D6 RID: 470
2717 public static Func<char, bool> <>9__35_0;
2718
2719 // Token: 0x040001D7 RID: 471
2720 public static Func<char, bool> <>9__37_0;
2721
2722 // Token: 0x040001D8 RID: 472
2723 public static Func<char, bool> <>9__38_0;
2724
2725 // Token: 0x040001D9 RID: 473
2727 }
2728 }
2729}
class f__AnonymousType0<< Count > j__TPar
static string Format(string resourceFormat, params object[] args)
Definition SR.cs:33
Definition SR.cs:7
static string GetEnvironmentVariable(string variable)
static Exception GetEndOfFile()
Definition Error.cs:16
static string Combine(string path1, string path2)
Definition Path.cs:41
void AddValue(string name, object value, Type type)
static Encoding UTF8
Definition Encoding.cs:828
static void Exit(object obj)
Definition Monitor.cs:47
readonly TimeZoneInfo.TransitionTime _daylightTransitionEnd
static TimeZoneInfo.AdjustmentRule CreateAdjustmentRule(DateTime dateStart, DateTime dateEnd, TimeSpan daylightDelta, TimeZoneInfo.TransitionTime daylightTransitionStart, TimeZoneInfo.TransitionTime daylightTransitionEnd, TimeSpan baseUtcOffsetDelta, bool noDaylightTransitions)
bool Equals(TimeZoneInfo.AdjustmentRule other)
TimeZoneInfo.TransitionTime DaylightTransitionStart
AdjustmentRule(SerializationInfo info, StreamingContext context)
static void ValidateAdjustmentRule(DateTime dateStart, DateTime dateEnd, TimeSpan daylightDelta, TimeZoneInfo.TransitionTime daylightTransitionStart, TimeZoneInfo.TransitionTime daylightTransitionEnd, bool noDaylightTransitions)
AdjustmentRule(DateTime dateStart, DateTime dateEnd, TimeSpan daylightDelta, TimeZoneInfo.TransitionTime daylightTransitionStart, TimeZoneInfo.TransitionTime daylightTransitionEnd, TimeSpan baseUtcOffsetDelta, bool noDaylightTransitions)
readonly TimeZoneInfo.TransitionTime _daylightTransitionStart
TimeZoneInfo.TransitionTime DaylightTransitionEnd
static TimeZoneInfo.AdjustmentRule CreateAdjustmentRule(DateTime dateStart, DateTime dateEnd, TimeSpan daylightDelta, TimeZoneInfo.TransitionTime daylightTransitionStart, TimeZoneInfo.TransitionTime daylightTransitionEnd)
DateTimeKind GetCorrespondingKind(TimeZoneInfo timeZone)
static readonly DateTime s_minDateOnly
static DateTime ConvertTimeToUtc(DateTime dateTime, TimeZoneInfoOptions flags)
static bool IsValidAdjustmentRuleOffest(TimeSpan baseUtcOffset, TimeZoneInfo.AdjustmentRule adjustmentRule)
static bool GetIsDaylightSavings(DateTime time, TimeZoneInfo.AdjustmentRule rule, DaylightTimeStruct daylightTime, TimeZoneInfoOptions flags)
static string GetTimeZoneDirectory()
static TimeSpan GetUtcOffset(TimeSpan baseUtcOffset, TimeZoneInfo.AdjustmentRule adjustmentRule)
static TimeZoneInfo.AdjustmentRule TZif_CreateAdjustmentRuleForPosixFormat(string posixFormat, DateTime startTransitionDate, TimeSpan timeZoneBaseUtcOffset)
static TimeZoneInfo CreateCustomTimeZone(string id, TimeSpan baseUtcOffset, string displayName, string standardDisplayName, string daylightDisplayName, TimeZoneInfo.AdjustmentRule[] adjustmentRules, bool disableDaylightSavingTime)
static bool GetIsAmbiguousTime(DateTime time, TimeZoneInfo.AdjustmentRule rule, DaylightTimeStruct daylightTime)
DateTime ConvertToUtc(DateTime dateTime, TimeSpan daylightDelta, TimeSpan baseUtcOffsetDelta)
static TimeZoneInfo.TransitionTime TZif_CreateTransitionTimeFromPosixRule(string date, string time)
static readonly TimeZoneInfo s_utcTimeZone
readonly bool _supportsDaylightSavingTime
TimeSpan GetUtcOffset(DateTime dateTime, TimeZoneInfoOptions flags, TimeZoneInfo.CachedData cachedData)
override bool Equals(object obj)
static List< TimeZoneInfo.AdjustmentRule > CreateAdjustmentRule(int year, [Out] long[] data, [Out] string[] names, string standardNameCurrentYear, string daylightNameCurrentYear)
static void NormalizeAdjustmentRuleOffset(TimeSpan baseUtcOffset, TimeZoneInfo.AdjustmentRule adjustmentRule)
static bool TryLoadTzFile(string tzFilePath, byte[] rawData, string id)
static DateTime ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags, TimeZoneInfo.CachedData cachedData)
static void TZif_ParseJulianDay(string date, [Out] int month, [Out] int day)
static readonly TimeSpan MaxOffset
bool IsDaylightSavingTime(DateTime dateTime, TimeZoneInfoOptions flags)
readonly TimeSpan _baseUtcOffset
static void EnumerateFilesRecursively(string path, Predicate< string > condition)
TimeSpan GetUtcOffset(DateTime dateTime, TimeZoneInfoOptions flags)
TimeZoneInfo.AdjustmentRule[] GetAdjustmentRules()
static void TZif_GenerateAdjustmentRule(int index, TimeSpan timeZoneBaseUtcOffset, List< TimeZoneInfo.AdjustmentRule > rulesList, DateTime[] dts, byte[] typeOfLocalTime, TimeZoneInfo.TZifType[] transitionTypes, bool[] StandardTime, bool[] GmtTime, string futureTransitionsPosixFormat)
static DateTime TZif_UnixTimeToDateTime(long unixTime)
static string TZif_GetZoneAbbreviation(string zoneAbbreviations, int index)
static string TZif_ParsePosixName(string posixFormat, int index)
TimeSpan GetDaylightSavingsEndOffsetFromUtc(TimeSpan baseUtcOffset, TimeZoneInfo.AdjustmentRule rule)
static TimeZoneInfo.TZifType TZif_GetEarlyDateTransitionType(TimeZoneInfo.TZifType[] transitionTypes)
static string GetTimeZoneDirectoryUnity()
readonly string _standardDisplayName
override string ToString()
static string TZif_ParsePosixDate(string posixFormat, int index)
static void TZif_GenerateAdjustmentRules([Out] TimeZoneInfo.AdjustmentRule[] rules, TimeSpan baseUtcOffset, DateTime[] dts, byte[] typeOfLocalTime, TimeZoneInfo.TZifType[] transitionType, bool[] StandardTime, bool[] GmtTime, string futureTransitionsPosixFormat)
TimeSpan GetDaylightSavingsStartOffsetFromUtc(TimeSpan baseUtcOffset, TimeZoneInfo.AdjustmentRule rule, int? ruleIndex)
static bool TZif_ParseMDateRule(string dateRule, [Out] int month, [Out] int week, [Out] DayOfWeek dayOfWeek)
TimeZoneInfo.AdjustmentRule GetAdjustmentRuleForTime(DateTime dateTime, bool dateTimeisUtc, [Out] int? ruleIndex)
static bool UtcOffsetOutOfRange(TimeSpan offset)
static bool TZif_ParsePosixFormat(string posixFormat, [Out] string standardName, [Out] string standardOffset, [Out] string daylightSavingsName, [Out] string daylightSavingsOffset, [Out] string start, [Out] string startTime, [Out] string end, [Out] string endTime)
TimeZoneInfo(string id, TimeSpan baseUtcOffset, string displayName, string standardDisplayName, string daylightDisplayName, TimeZoneInfo.AdjustmentRule[] adjustmentRules, bool disableDaylightSavingTime)
bool IsDaylightSavingTime(DateTime dateTime, TimeZoneInfoOptions flags, TimeZoneInfo.CachedData cachedData)
static TimeZoneInfo Local
static string FindTimeZoneIdUsingReadLink(string tzFilePath)
static TimeZoneInfo.CachedData s_cachedData
TimeZoneInfo.AdjustmentRule GetPreviousAdjustmentRule(TimeZoneInfo.AdjustmentRule rule, int? ruleIndex)
bool HasSameRules(TimeZoneInfo other)
readonly string _displayName
static DateTime ParseTimeOfDay(string time)
static DateTime ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags)
static ? TimeSpan TZif_ParseOffsetString(string offset)
static readonly DateTime s_maxDateOnly
readonly string _daylightDisplayName
TimeZoneInfo(byte[] data, string id, bool dstDisabled)
static TimeSpan GetDateTimeNowUtcOffsetFromUtc(DateTime time, [Out] bool isAmbiguousLocalDst)
static int TZif_ToInt32(byte[] value, int startIndex)
static bool GetIsInvalidTime(DateTime time, TimeZoneInfo.AdjustmentRule rule, DaylightTimeStruct daylightTime)
static readonly TimeSpan MinOffset
static TimeZoneInfo Utc
static TimeSpan GetUtcOffsetFromUtc(DateTime time, TimeZoneInfo zone)
static TimeSpan GetLocalUtcOffset(DateTime dateTime, TimeZoneInfoOptions flags)
static string FindTimeZoneId(byte[] rawData)
static TimeSpan GetUtcOffsetFromUtc(DateTime time, TimeZoneInfo zone, [Out] bool isDaylightSavings)
static string TZif_ParsePosixString(string posixFormat, int index, Func< char, bool > breakCondition)
static DateTime ConvertUtcToTimeZone(long ticks, TimeZoneInfo destinationTimeZone, [Out] bool isAmbiguousLocalDst)
TimeZoneInfo.AdjustmentRule GetAdjustmentRuleForTime(DateTime dateTime, [Out] int? ruleIndex)
static bool CompareTimeZoneFile(string filePath, byte[] buffer, byte[] rawData)
static bool CheckIsDst(DateTime startTime, DateTime time, DateTime endTime, bool ignoreYearAdjustment, TimeZoneInfo.AdjustmentRule rule)
DaylightTimeStruct GetDaylightTime(int year, TimeZoneInfo.AdjustmentRule rule, int? ruleIndex)
static void TZif_ParsePosixDateTime(string posixFormat, int index, [Out] string date, [Out] string time)
static TimeZoneInfo CreateCustomTimeZone(string id, TimeSpan baseUtcOffset, string displayName, string standardDisplayName)
override int GetHashCode()
static DateTime TransitionTimeToDateTime(int year, TimeZoneInfo.TransitionTime transitionTime)
static void TZif_ParseRaw(byte[] data, [Out] TimeZoneInfo.TZifHead t, [Out] DateTime[] dts, [Out] byte[] typeOfLocalTime, [Out] TimeZoneInfo.TZifType[] transitionType, [Out] string zoneAbbreviations, [Out] bool[] StandardTime, [Out] bool[] GmtTime, [Out] string futureTransitionsPosixFormat)
TimeSpan GetUtcOffset(DateTime dateTime)
static TimeZoneInfo GetLocalTimeZoneFromTzFile()
static TimeSpan TZif_CalculateTransitionOffsetFromBase(TimeSpan transitionOffset, TimeSpan timeZoneBaseUtcOffset)
DateTime ConvertToFromUtc(DateTime dateTime, TimeSpan daylightDelta, TimeSpan baseUtcOffsetDelta, bool convertToUtc)
int CompareAdjustmentRuleToDateTime(TimeZoneInfo.AdjustmentRule rule, TimeZoneInfo.AdjustmentRule previousRule, DateTime dateTime, DateTime dateOnly, bool dateTimeisUtc)
static bool GetIsDaylightSavingsFromUtc(DateTime time, int year, TimeSpan utc, TimeZoneInfo.AdjustmentRule rule, int? ruleIndex, [Out] bool isAmbiguousLocalDst, TimeZoneInfo zone)
static void ValidateTimeZoneInfo(string id, TimeSpan baseUtcOffset, TimeZoneInfo.AdjustmentRule[] adjustmentRules, [Out] bool adjustmentRulesSupportDst)
static bool TryGetLocalTzFile([Out] byte[] rawData, [Out] string id)
readonly string _id
static TimeZoneInfo CreateLocalUnity()
static long TZif_ToInt64(byte[] value, int startIndex)
static string GetDirectoryEntryFullPath(Interop.Sys.DirectoryEntry dirent, string currentPath)
static TimeSpan GetUtcOffset(DateTime time, TimeZoneInfo zone, TimeZoneInfoOptions flags)
DateTime ConvertFromUtc(DateTime dateTime, TimeSpan daylightDelta, TimeSpan baseUtcOffsetDelta)
static TimeSpan GetUtcOffsetFromUtc(DateTime time, TimeZoneInfo zone, [Out] bool isDaylightSavings, [Out] bool isAmbiguousLocalDst)
bool Equals(TimeZoneInfo other)
static TimeZoneInfo GetTimeZoneFromTzData(byte[] rawData, string id)
TimeZoneInfo(SerializationInfo info, StreamingContext context)
static string GetTzEnvironmentVariable()
static string TZif_ParsePosixTime(string posixFormat, int index)
static long TZif_ToUnixTime(byte[] value, int startIndex, TimeZoneInfo.TZVersion version)
readonly TimeZoneInfo.AdjustmentRule[] _adjustmentRules
static string TZif_ParsePosixOffset(string posixFormat, int index)
static TimeZoneInfo GetLocalTimeZone(TimeZoneInfo.CachedData cachedData)
void GetObjectData(SerializationInfo info, StreamingContext context)
DayOfWeek
Definition DayOfWeek.cs:7
DateTime Date
Definition DateTime.cs:405
DateTime AddYears(int value)
Definition DateTime.cs:209
static int DaysInMonth(int year, int month)
Definition DateTime.cs:308
static DateTime UtcNow
Definition DateTime.cs:1318
TZifHead(byte[] data, int index)
readonly TimeZoneInfo.TZVersion Version
TZifType(byte[] data, int index)
bool Equals(TimeZoneInfo.TransitionTime other)
override bool Equals(object obj)
static TimeZoneInfo.TransitionTime CreateFloatingDateRule(DateTime timeOfDay, int month, int week, DayOfWeek dayOfWeek)
static bool operator!=(TimeZoneInfo.TransitionTime t1, TimeZoneInfo.TransitionTime t2)
static void ValidateTransitionTime(DateTime timeOfDay, int month, int week, int day, DayOfWeek dayOfWeek)
TransitionTime(SerializationInfo info, StreamingContext context)
TransitionTime(DateTime timeOfDay, int month, int week, int day, DayOfWeek dayOfWeek, bool isFixedDateRule)
static TimeZoneInfo.TransitionTime CreateFixedDateRule(DateTime timeOfDay, int month, int day)