Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

A small preparatory change for TypeInfo restoration. - #1660

Merged
1 commit merged into
nmirrorfrom
unknown repository
Aug 16, 2016
Merged

1 commit merged into
nmirrorfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 16, 2016

Copy link
Copy Markdown

RuntimeTypeInfo.GetDeclaredMethods() and GetDeclaredNestedType()
were inheriting their implementations from TypeInfo.
This is fine with today's bits but as soon as we replace
TypeInfo with the one from the full framework, these
will break as the full framework TypeInfo routes everything
through the BindingFlags apis which won't be implemented
yet.

To avoid that, we'll override them with a self-sufficient
implementation to tide us over until everything's
back up and running.

This also shone light on the fact that the unspoken
convention of making sure each override/no-override
decision is made explicit in this particular codebase
has bit-rotted some. So I added some new override
declarations to fill those holes.

RuntimeTypeInfo.GetDeclaredMethods() and GetDeclaredNestedType()
were inheriting their implementations from TypeInfo.
This is fine with today's bits but as soon as we replace
TypeInfo with the one from the full framework, these
will break as the full framework TypeInfo routes everything
through the BindingFlags apis which won't be implemented
yet.

To avoid that, we'll override them with a self-sufficient
implementation to tide us over until everything's
back up and running.

This also shone light on the fact that the unspoken
convention of making sure each override/no-override
decision is made explicit in this particular codebase
has bit-rotted some. So I added some new override
declarations to fill those holes.
@ghost
ghost merged commit 233f9da into dotnet:nmirror Aug 16, 2016
@ghost
ghost deleted the refprep branch August 16, 2016 22:05
This pull request was closed.
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.

1 participant