This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/System.Private.CoreLib Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 303
303
<Compile Include =" $(BclSourcesRoot)\Internal\Console.cs" />
304
304
<Compile Condition =" '$(FeatureCominterop)' == 'true'" Include =" $(BclSourcesRoot)\Internal\Threading\Tasks\AsyncCausalitySupport.cs" />
305
305
<Compile Condition =" '$(FeatureCominterop)' == 'true'" Include =" $(BclSourcesRoot)\Internal\Runtime\InteropServices\WindowsRuntime\ExceptionSupport.cs" />
306
- <Compile Condition =" '$(FeatureAppX)' == 'true'" Include =" $(BclSourcesRoot)\Internal\Resources\WindowsRuntimeResourceManagerBase.cs" />
307
306
<Compile Condition =" '$(FeatureAppX)' == 'true'" Include =" $(BclSourcesRoot)\Internal\Resources\PRIExceptionInfo.cs" />
307
+ <Compile Condition =" '$(FeatureAppX)' == 'true'" Include =" $(BclSourcesRoot)\Internal\Resources\WindowsRuntimeResourceManagerBase.cs" />
308
308
</ItemGroup >
309
309
<ItemGroup >
310
310
<Compile Include =" $(BclSourcesRoot)\System\Reflection\Assembly.CoreCLR.cs" />
Original file line number Diff line number Diff line change @@ -21,5 +21,14 @@ public abstract CultureInfo GlobalResourceContextBestFitCultureInfo
21
21
}
22
22
23
23
public abstract bool SetGlobalResourceContextDefaultCulture ( CultureInfo ci ) ;
24
+
25
+ /// <summary>
26
+ /// Check whether CultureData exists for specified cultureName
27
+ /// This API is used for WindowsRuntimeResourceManager in System.Runtime.WindowsRuntime
28
+ /// </summary>
29
+ public static bool IsValidCulture ( string cultureName )
30
+ {
31
+ return CultureData . GetCultureData ( cultureName , /* useUserOverride */ true ) != null ;
32
+ }
24
33
}
25
34
}
You can’t perform that action at this time.
0 commit comments