From b7ea3897c635e746573a6ff50bf2f2a54be16126 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 30 Jul 2018 07:16:11 -0700 Subject: Change type of EnumLocaleData to struct (dotnet/coreclr#19193) Saves allocation and makes the code smaller. It had to be class before we had ref locals. Signed-off-by: dotnet-bot --- .../shared/System/Globalization/CultureData.Windows.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/System.Private.CoreLib/shared') 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 393f983bb..75f78620d 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 @@ namespace System.Globalization // Context for EnumCalendarInfoExEx callback. - private class EnumLocaleData + private struct EnumLocaleData { public string regionName; public string cultureName; -- cgit v1.2.3