Fix calendar instance inside the culture after cloning (#26721)
commit77473d11b710f387adbb4fd8b4fac8ab34d3e01e
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Mon, 16 Sep 2019 19:18:17 +0000 (16 12:18 -0700)
committerMarek Safar <marek.safar@gmail.com>
Tue, 17 Sep 2019 07:19:11 +0000 (17 09:19 +0200)
treec98221111285069ba5d8f50eb49882ef47de86e0
parent38b2d4f4fe087ca362fcfd7578e3e93e4560d6af
Fix calendar instance inside the culture after cloning (#26721)

When creating a new culture, we’ll have the equality CultureInfo.DateTimeInfo.Calendar == CultureInfo.calendar be true. After cloning such culture, this equality would not be true. The fix here is to ensure if the equality is true before cloning then should be true after cloning.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System/Globalization/CultureInfo.cs