Definition at line 2593 of file TimeZoneInfo.cs.
2594 {
2596 e = null;
2597 try
2598 {
2601 {
2604 {
2606 }
2607 return true;
2608 }
2609 int num = (int)
registryKey.GetValue(
"FirstEntry", -1);
2611 if (num == -1 ||
num2 == -1 || num >
num2)
2612 {
2613 return false;
2614 }
2616 {
2617 return false;
2618 }
2620 {
2623 {
2625 }
2626 return true;
2627 }
2631 {
2633 }
2634 for (
int i = num + 1;
i <
num2;
i++)
2635 {
2637 {
2638 return false;
2639 }
2642 {
2644 }
2645 }
2647 {
2648 return false;
2649 }
2652 {
2654 }
2655 if (
list.Count != 0)
2656 {
2658 }
2659 }
2660 catch (InvalidCastException
ex)
2661 {
2663 return false;
2664 }
2665 catch (ArgumentOutOfRangeException
ex2)
2666 {
2668 return false;
2669 }
2670 catch (ArgumentException
ex3)
2671 {
2673 return false;
2674 }
2675 return true;
2676 }
static readonly RegistryKey LocalMachine
static CultureInfo InvariantCulture
static AdjustmentRule CreateAdjustmentRuleFromTimeZoneInformation(in Interop.Kernel32.REG_TZI_FORMAT timeZoneInformation, DateTime startDate, DateTime endDate, int defaultBaseUtcOffset)
static unsafe bool TryGetTimeZoneEntryFromRegistry(RegistryKey key, string name, out Interop.Kernel32.REG_TZI_FORMAT dtzi)
References System.TimeZoneInfo.CreateAdjustmentRuleFromTimeZoneInformation(), System.DateTime, System.Runtime.Serialization.Dictionary, System.Globalization.CultureInfo.InvariantCulture, System.list, Internal.Win32.Registry.LocalMachine, System.DateTime.MaxValue, System.DateTime.MinValue, and System.TimeZoneInfo.TryGetTimeZoneEntryFromRegistry().
Referenced by System.TimeZoneInfo.TryGetTimeZoneFromLocalMachine().