[corlib] Expose Marshal.PtrToStringBSTR on mobile
commitdf1475d95e1dd4327b44df459d1aabbecb8ce92f
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 8 Nov 2016 00:31:30 +0000 (8 01:31 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 8 Nov 2016 00:31:30 +0000 (8 01:31 +0100)
tree25fcea6c12068c68ee0c5adc81db09724e674a7a
parentc8ae9af395f212f00156137dff59864e3707f16c
[corlib] Expose Marshal.PtrToStringBSTR on mobile

The SecureStringHelper from referencesource I added in https://github.com/mono/mono/pull/3887
relies on this to convert from SecureString to plaintext.

It failed on mobile because we always throw a NotImplementedException there,
but we actually have an implementation on the runtime side (even in the DISABLE_COM case).
mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
mcs/class/corlib/Test/System.Runtime.InteropServices/MarshalTest.cs
mono/metadata/icall-def.h