Enable Invoke and GetValue for ref-returning members (#17639)
authorAtsushi Kanamori <AtsushiKan@users.noreply.github.com>
Wed, 18 Apr 2018 20:56:42 +0000 (13:56 -0700)
committerGitHub <noreply@github.com>
Wed, 18 Apr 2018 20:56:42 +0000 (13:56 -0700)
commite88dc7f910b08a4d3edc4972147ff035d164c4c4
tree3fa3990df829cfa6eb20b2238206d96b008eaf3e
parent4861cc3bc998fe0edc0be3c4c8ff50b869c415db
Enable Invoke and GetValue for ref-returning members (#17639)

* Enable Invoke and GetValue for ref-returning members

https://github.com/dotnet/corefx/issues/15960

Returned magic object is the object pointed to by
the ref. If the ref is null, NullReferenceException.

* Fix error message

* Found way to reuse InvokeUtil::CreateObject

* Remove comment, BYREF case.
src/dlls/mscorrc/mscorrc.rc
src/dlls/mscorrc/resource.h
src/mscorlib/Resources/Strings.resx
src/mscorlib/src/System/Reflection/RuntimeMethodInfo.cs
src/vm/invokeutil.cpp
src/vm/invokeutil.h
src/vm/reflectioninvocation.cpp