Fix closed delegate deserialization to account for extension methods (dotnet/coreclr...
authorKoundinya Veluri <kouvel@microsoft.com>
Wed, 12 Apr 2017 17:33:52 +0000 (10:33 -0700)
committerGitHub <noreply@github.com>
Wed, 12 Apr 2017 17:33:52 +0000 (10:33 -0700)
commit433b212506fb425f4d25c23a4060bcc312ea5b8f
tree556e7e036fcbdb5913b5ca009e24158b75e8c0f5
parentf9b5d8c0ca9b94779202253863848fa81b656ec8
Fix closed delegate deserialization to account for extension methods (dotnet/coreclr#10901)

Functional fix for dotnet/coreclr#9597:
- The code was incorrectly assuming that the serialized target type info refers to the target object's type; it actually refers to the method's reflected type, which may not be the same type when it's an extension method

Commit migrated from https://github.com/dotnet/coreclr/commit/45d0444a05f0bbceb2f259ce483c080f0991be1b
src/coreclr/src/mscorlib/src/System/DelegateSerializationHolder.cs