Change type of EnumLocaleData to struct (dotnet/coreclr#19193)
authorJan Kotas <jkotas@microsoft.com>
Mon, 30 Jul 2018 14:16:11 +0000 (07:16 -0700)
committerGitHub <noreply@github.com>
Mon, 30 Jul 2018 14:16:11 +0000 (07:16 -0700)
Saves allocation and makes the code smaller. It had to be class before we had ref locals.

Commit migrated from https://github.com/dotnet/coreclr/commit/ba54b408472d7a4ded3c144d7c4791b991d58454

src/libraries/System.Private.CoreLib/src/System/Globalization/CultureData.Windows.cs

index 393f983..75f7862 100644 (file)
@@ -517,7 +517,7 @@ namespace System.Globalization
 
 
         // Context for EnumCalendarInfoExEx callback.
-        private class EnumLocaleData
+        private struct EnumLocaleData
         {
             public string regionName;
             public string cultureName;