Fix closed delegate deserialization to account for extension methods (#10901)
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)
commit45d0444a05f0bbceb2f259ce483c080f0991be1b
tree0198c650c1206ec94858410160e4c3ca5e2dc959
parentcdb88f49038a7dd2f33f5ede0f519c00ff5be503
Fix closed delegate deserialization to account for extension methods (#10901)

Functional fix for #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
src/mscorlib/src/System/DelegateSerializationHolder.cs