From 762e716bcf713b04639e56c0e6bdb8ada4468414 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sun, 29 Jul 2018 18:38:25 -0700 Subject: [PATCH] Change type of EnumLocaleData to struct Saves allocation and makes the code smaller. It had to be class before we had ref locals. --- .../shared/System/Globalization/CultureData.Windows.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Private.CoreLib/shared/System/Globalization/CultureData.Windows.cs b/src/System.Private.CoreLib/shared/System/Globalization/CultureData.Windows.cs index 393f983bba59..75f78620d5df 100644 --- a/src/System.Private.CoreLib/shared/System/Globalization/CultureData.Windows.cs +++ b/src/System.Private.CoreLib/shared/System/Globalization/CultureData.Windows.cs @@ -517,7 +517,7 @@ private static int ConvertFirstDayOfWeekMonToSun(int iTemp) // Context for EnumCalendarInfoExEx callback. - private class EnumLocaleData + private struct EnumLocaleData { public string regionName; public string cultureName;