Imported Upstream version 6.0.0.271

Former-commit-id: 2fde65daab17ed3bb08a7be86fb05423d63b0290
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-05-29 08:54:19 +00:00
parent 8f11a00d09
commit 2ba231cd0c
155 changed files with 1067 additions and 794 deletions

View File

@@ -0,0 +1,26 @@
#if !MONO_FEATURE_SRE
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
[Obsolete ("An alternate API is available: Emit the MarshalAs custom attribute instead.")]
[ComVisible (true)]
[Serializable]
[StructLayout (LayoutKind.Sequential)]
public sealed class UnmanagedMarshal {
private UnmanagedMarshal () {}
public UnmanagedType BaseType { get { throw new PlatformNotSupportedException (); } }
public int ElementCount { get { throw new PlatformNotSupportedException (); } }
public UnmanagedType GetUnmanagedType { get { throw new PlatformNotSupportedException (); } }
public System.Guid IIDGuid { get { throw new PlatformNotSupportedException (); } }
public static UnmanagedMarshal DefineByValArray (int elemCount) => throw new PlatformNotSupportedException ();
public static UnmanagedMarshal DefineByValTStr (int elemCount) => throw new PlatformNotSupportedException ();
public static UnmanagedMarshal DefineLPArray (UnmanagedType elemType) => throw new PlatformNotSupportedException ();
public static UnmanagedMarshal DefineUnmanagedMarshal (UnmanagedType unmanagedType) => throw new PlatformNotSupportedException ();
}
}
#endif