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

Add public implementation WindowsRuntimeResourceManagerBase#18417

Merged
luqunl merged 3 commits into
dotnet:masterfrom
luqunl:WindowsRuntimeResourceManagerBase
Jun 12, 2018
Merged

Add public implementation WindowsRuntimeResourceManagerBase#18417
luqunl merged 3 commits into
dotnet:masterfrom
luqunl:WindowsRuntimeResourceManagerBase

Conversation

@luqunl
Copy link
Copy Markdown

@luqunl luqunl commented Jun 11, 2018

The change is to add public implementation WindowsRuntimeResourceManagerBase and PRIExceptionInfo in S.P.Corelib for S.P.WindowsRuntime to use. It will help to remove [assembly: InternalsVisibleTo(S.R.WindowsRuntime) ] in S.P.Corelib later.

//
// This is implemented in System.Runtime.WindowsRuntime as function System.Resources.WindowsRuntimeResourceManager,
// allowing us to ask for a WinRT-specific ResourceManager.
// It is important to have WindowsRuntimeResourceManagerBase as regular class with virtual methods and default implementations.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This comment does not match the implementation. The comment stays that it is important to not have the class abstract; but the implementation is actually abstract.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it is fine to keep them abstract since we plan to always ship them together.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Remove these confuse comments.

@tarekgh
Copy link
Copy Markdown
Member

tarekgh commented Jun 11, 2018

other than @jkotas comment, LGTM


namespace Internal.Resources
{
// This is implemented in System.Runtime.WindowsRuntime as function System.Resources.WindowsRuntimeResourceManager,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: System.Resources.WindowsRuntimeResourceManager is not a function.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed.

@luqunl luqunl merged commit f547ca7 into dotnet:master Jun 12, 2018
@luqunl luqunl deleted the WindowsRuntimeResourceManagerBase branch June 12, 2018 20:54
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.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants