Skip to content

Commit

Permalink
Change type of EnumLocaleData to struct (dotnet/coreclr#19193)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jkotas authored and dotnet-bot committed Jul 30, 2018
1 parent b896e92 commit afbc6a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit afbc6a7

Please sign in to comment.