This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
More Reflection Restoration Debt Cleanup - #1561
Merged
1 commit merged intoJul 21, 2016
Merged
1 commit merged into
1 commit merged into
Conversation
- We don't need ReflectionTrace support in CoreLib anymore
since we've moved the Reflection implementation out of
CoreLib.
- Move the partial class declarations for RuntimeXTypeInfo
out of Dispensers.cs and into TypeUnifier.cs. These dispensers
are now governed under a stricter set of rules (reference
equality == semantic equality) than the others so it's
misleading to group them with the others.
- Cleaned out some dead code and removed some now unnecessary
Type/TypeInfo conversions.
- Renamed GetRuntimeTypeInfo<R> to the more apt
CastToRuntimeTypeInfo() and removed the generic
parameter as I don't want to encourage using
specific RuntimeTypeInfo types as exchange
types.
We are still left with CastToRuntimeNamedTypeInfo() as
RuntimeNamedTypeInfo is a widely used exchange type.
I'd like to get away from this too as RuntimeNamedTypeInfo
conflates two ideas:
- Has a .Net Native metadata TypeHandle available
(i.e. no MissingMetadataException)
- Is not IsArray/IsByRef/IsPointer/IsConstructedGenericType/
IsGenericParameter.
Unfortunately, these two sets are not identical and
haven't been for some time, and it may cause problems
for us later if we have to restore the ugly desktop behavior
of representing generic typedefs as if they were
generic instantations closed over the open generic parameters.
This is, however, a bigger chunk than I want to bite off
in this commit.
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We don't need ReflectionTrace support in CoreLib anymore
since we've moved the Reflection implementation out of
CoreLib.
Move the partial class declarations for RuntimeXTypeInfo
out of Dispensers.cs and into TypeUnifier.cs. These dispensers
are now governed under a stricter set of rules (reference
equality == semantic equality) than the others so it's
misleading to group them with the others.
Cleaned out some dead code and removed some now unnecessary
Type/TypeInfo conversions.
Renamed GetRuntimeTypeInfo to the more apt
CastToRuntimeTypeInfo() and removed the generic
parameter as I don't want to encourage using
specific RuntimeTypeInfo types as exchange
types.
We are still left with CastToRuntimeNamedTypeInfo() as
RuntimeNamedTypeInfo is a widely used exchange type.
I'd like to get away from this too as RuntimeNamedTypeInfo
conflates two ideas:
(i.e. no MissingMetadataException)
IsGenericParameter.
Unfortunately, these two sets are not identical and
haven't been for some time, and it may cause problems
for us later if we have to restore the ugly desktop behavior
of representing generic typedefs as if they were
generic instantations closed over the open generic parameters.
This is, however, a bigger chunk than I want to bite off
in this commit.