diff options
author | Jan Kotas <jkotas@microsoft.com> | 2018-07-30 17:16:11 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-07-30 22:32:04 +0300 |
commit | b7ea3897c635e746573a6ff50bf2f2a54be16126 (patch) | |
tree | 72e4e32f80c270b1fe8a49717fc19207839025e4 /src | |
parent | 65b42e1a53ce1f9f94fe128f64168c5bf89b1da9 (diff) |
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 <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Globalization/CultureData.Windows.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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; |