[corlib] Make Marshal.BufferToBSTR(Array, int) non-public again (#5670)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Sat, 30 Sep 2017 19:51:42 +0000 (21:51 +0200)
committerGitHub <noreply@github.com>
Sat, 30 Sep 2017 19:51:42 +0000 (21:51 +0200)
* [corlib] Make Marshal.BufferToBSTR(Array, int) non-public again

It was accidentally made public in https://github.com/mono/mono/commit/c5cdfaec1e0973ced3f97ef589cd0bece56067ad.
Unfortunately this was before we had the API diff check on Mono and the manual checks in XI/XA integration didn't catch it either.

* Bump API snapshot submodule

external/api-snapshot
mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs

index 090c95d755f8112db5cf6c30df92a9941d9124a4..627333cae84f02a36ee9ca605c96dac4557d9f35 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 090c95d755f8112db5cf6c30df92a9941d9124a4
+Subproject commit 627333cae84f02a36ee9ca605c96dac4557d9f35
index 128b8c983b134408a2056bddd9aec8cd09fc2c2e..e94898a5c3863487d63de1900d08563c96fae40c 100644 (file)
@@ -1239,7 +1239,7 @@ namespace System.Runtime.InteropServices
 
 
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
-               public extern static IntPtr BufferToBSTR (Array ptr, int slen);
+               extern static IntPtr BufferToBSTR (Array ptr, int slen);
 
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                public extern static IntPtr UnsafeAddrOfPinnedArrayElement (Array arr, int index);