Skip to content

Commit 9b2b783

Browse files
Fix nativeaot outerloop (#109010)
Co-authored-by: Michal Strehovský <[email protected]>
1 parent cd49b58 commit 9b2b783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Globalization/tests/System/Globalization/RegionInfoTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public void ValidateThrowingWhenUsingCustomUnspecifiedLcid()
273273
public void BuiltInRegionListTest()
274274
{
275275
// Ensure we can create all region info objects from the built-in list
276-
Dictionary<string, string> regionNames = (Dictionary<string, string>)typeof(RegionInfo).Assembly.GetType("System.Globalization.CultureData").GetProperty("RegionNames", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null);
276+
Dictionary<string, string> regionNames = (Dictionary<string, string>)Type.GetType("System.Globalization.CultureData, System.Private.CoreLib").GetProperty("RegionNames", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null);
277277

278278
foreach (var kvp in regionNames)
279279
{

0 commit comments

Comments
 (0)