Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetLocalizedNamesByRegistryKey()

static void System.TimeZoneInfo.GetLocalizedNamesByRegistryKey ( RegistryKey key,
out string displayName,
out string standardName,
out string daylightName )
inlinestaticprivate

Definition at line 2789 of file TimeZoneInfo.cs.

2790 {
2791 displayName = string.Empty;
2792 standardName = string.Empty;
2793 daylightName = string.Empty;
2794 string text = key.GetValue("MUI_Display", string.Empty) as string;
2795 string text2 = key.GetValue("MUI_Std", string.Empty) as string;
2796 string text3 = key.GetValue("MUI_Dlt", string.Empty) as string;
2797 if (!string.IsNullOrEmpty(text))
2798 {
2800 }
2801 if (!string.IsNullOrEmpty(text2))
2802 {
2804 }
2805 if (!string.IsNullOrEmpty(text3))
2806 {
2808 }
2809 if (string.IsNullOrEmpty(displayName))
2810 {
2811 displayName = key.GetValue("Display", string.Empty) as string;
2812 }
2813 if (string.IsNullOrEmpty(standardName))
2814 {
2815 standardName = key.GetValue("Std", string.Empty) as string;
2816 }
2817 if (string.IsNullOrEmpty(daylightName))
2818 {
2819 daylightName = key.GetValue("Dlt", string.Empty) as string;
2820 }
2821 }
static string GetLocalizedNameByMuiNativeResource(string resource)

References System.TimeZoneInfo.GetLocalizedNameByMuiNativeResource(), System.key, and System.text.

Referenced by System.TimeZoneInfo.TryGetTimeZoneFromLocalMachine().