This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Merge changes from TFS - #1547
Merged
Merged
Conversation
https://github.com/dotnet/corefx/issues/9805 Preparing Reflection to make it easy to remove RuntimeType. The actual switch is going to be a mostly automated "mass-replace RuntimeType with RuntimeTypeInfo, add GetTypeInfo() calls as necessary and don't think about things too much." Based on lessons learned by a few trial runs of this, this commit preps the codebase ahead of time to minimize the number of things we have to think about. Some of the code changes may look strange (as in adding extra conversions from Type/TypeInfo) but that's because we're optimizing for where we're going rather than where we are. In particular, calls to RuntimeTypeInfo.RuntimeType and CastToType() will become a "return this" and will be removed entirely. - Consolidate the Type->TypeInfo conversion helpers (get rid of the non-generic GetRuntimeInfo() extension method as it doesn't add much.) - Remove code where we cast to or do "is/as" checks against RuntimeType or RuntimeTypeInfo. - Preemptively imported the necessary namespaces (S.R.R.General/S.R.R.TypeInfo) on the various files so I don't have to do this during the big switch. - Synced up RuntimeTypeInfo's internal surface area with RuntimeType's. We can remove some of these after the switch since they are a bit redundant. - Added ICloneable to RuntimeTypeInfo because ummm... it was added to RuntimeType as part of the api syncup. [tfs-changeset: 1618386]
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.
No description provided.