Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Add public implementation CultureDataSupport #18691

Merged
merged 2 commits into from
Jun 29, 2018
Merged

Conversation

luqunl
Copy link

@luqunl luqunl commented Jun 28, 2018

WindowsRuntimeResourceManager need to access CultureData to see whether a language is supported or not.
Add a public implementation CultureDataSupport for WindowsRuntimeResourceManager

/// Check whether CultureData exists for specified language
/// This API is used for WindowsRuntimeResourceManager in System.Runtime.WindowsRuntime
/// </summary>
public static bool IsCultureDataExists(string language)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This argument is not language. I would call this bool IsValidCulture(string cultureName) and put into WindowsRuntimeResourceManagerBase so that all resource glue is together.

@luqunl
Copy link
Author

luqunl commented Jun 28, 2018

@dotnet-bot test OSX10.12 x64 Checked Innerloop Build and Test

@luqunl luqunl merged commit 7acc719 into dotnet:master Jun 29, 2018
@luqunl luqunl deleted the cultureData branch June 29, 2018 16:24
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants