This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression in third party ParameterInfo serialization. (#12038)
Fix https://github.com/dotnet/corefx/issues/20574 The decision to make the runtime's implementation of Reflection objects non-serializable went too far and changed the behaviors of methods inherited by all Reflection implementors. In particular, by changing ParameterInfo.GetRealObject() to throw PNSE, all third-party implementations of ParameterInfo become undeserializable, not just the runtime's implementation. The intended change was to make the runtime's implementation non-serializable which is already accomplished by removing [Serializable] from RuntimeParameterInfo. The methods on the abstract base classes for Reflection are "apis" to all Reflection implementors and their long-standing behaviors should not change based on decisions made by the runtime's particular implementation. This commit rolls back those changes that were introduced as part of #12020.
- Loading branch information
1 parent
f476e38
commit 5f696b0
Showing
3 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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