Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ PopulateAllSystemTimeZones()

static void System.TimeZoneInfo.PopulateAllSystemTimeZones ( CachedData cachedData)
inlinestaticprivate

Definition at line 2363 of file TimeZoneInfo.cs.

2364 {
2365 using RegistryKey registryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones", writable: false);
2366 if (registryKey != null)
2367 {
2368 string[] subKeyNames = registryKey.GetSubKeyNames();
2369 foreach (string id in subKeyNames)
2370 {
2372 }
2373 }
2374 }
static readonly RegistryKey LocalMachine
Definition Registry.cs:9
static TimeZoneInfoResult TryGetTimeZone(string id, bool dstDisabled, out TimeZoneInfo value, out Exception e, CachedData cachedData, bool alwaysFallbackToLocalMachine=false)

References System.Runtime.Serialization.Dictionary, Internal.Win32.Registry.LocalMachine, and System.TimeZoneInfo.TryGetTimeZone().

Referenced by System.TimeZoneInfo.GetSystemTimeZones().