diff options
author | ahsonkhan <ahson_ahmedk@yahoo.com> | 2017-09-09 00:39:30 +0300 |
---|---|---|
committer | ahsonkhan <ahson_ahmedk@yahoo.com> | 2017-09-09 00:39:30 +0300 |
commit | cf17f15ed10e6151df062e477cbb87de018056d8 (patch) | |
tree | 5d27fea11798230700ef09c8f3064652f29dafba /src/System.Runtime.InteropServices | |
parent | 6843117e57d30dda013fcafe470ea17053426939 (diff) |
Move GCHandle and GCHandleType to System.Runtime reference assembly.
Diffstat (limited to 'src/System.Runtime.InteropServices')
-rw-r--r-- | src/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/src/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs b/src/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs index f2d619b8f4..3f36a1dd88 100644 --- a/src/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs +++ b/src/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs @@ -7,6 +7,8 @@ // Types moved down into System.Runtime.Handles [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.CriticalHandle))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.GCHandle))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.GCHandleType))] [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.SafeHandle))] [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.Missing))] @@ -393,31 +395,6 @@ namespace System.Runtime.InteropServices public ErrorWrapper(object errorCode) { } public int ErrorCode { get { throw null; } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public partial struct GCHandle - { - public bool IsAllocated { get { throw null; } } - public object Target {get { throw null; } set { } } - public System.IntPtr AddrOfPinnedObject() { throw null; } - public static System.Runtime.InteropServices.GCHandle Alloc(object value) { throw null; } - public static System.Runtime.InteropServices.GCHandle Alloc(object value, System.Runtime.InteropServices.GCHandleType type) { throw null; } - public override bool Equals(object o) { throw null; } - public void Free() { } - public static System.Runtime.InteropServices.GCHandle FromIntPtr(System.IntPtr value) { throw null; } - public override int GetHashCode() { throw null; } - public static bool operator ==(System.Runtime.InteropServices.GCHandle a, System.Runtime.InteropServices.GCHandle b) { throw null; } - public static explicit operator System.Runtime.InteropServices.GCHandle(System.IntPtr value) { throw null; } - public static explicit operator System.IntPtr(System.Runtime.InteropServices.GCHandle value) { throw null; } - public static bool operator !=(System.Runtime.InteropServices.GCHandle a, System.Runtime.InteropServices.GCHandle b) { throw null; } - public static System.IntPtr ToIntPtr(System.Runtime.InteropServices.GCHandle value) { throw null; } - } - public enum GCHandleType - { - Normal = 2, - Pinned = 3, - Weak = 0, - WeakTrackResurrection = 1, - } [System.AttributeUsageAttribute((System.AttributeTargets)(5149), Inherited = false)] public sealed partial class GuidAttribute : System.Attribute { |