From: Stephen Toub Date: Fri, 19 Aug 2016 12:01:38 +0000 (-0400) Subject: Fix WeakReference in mscorlib ref assembly X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=827ff1970b585df00c0def7a9088dc3696abf136;p=platform%2Fupstream%2Fcoreclr.git Fix WeakReference in mscorlib ref assembly It's missing the ISerializable implementation. --- diff --git a/src/mscorlib/ref/mscorlib.cs b/src/mscorlib/ref/mscorlib.cs index abb6bddeea..cc6a003a3d 100644 --- a/src/mscorlib/ref/mscorlib.cs +++ b/src/mscorlib/ref/mscorlib.cs @@ -3933,7 +3933,7 @@ namespace System { } [System.Runtime.InteropServices.ComVisibleAttribute(true)] - public partial class WeakReference + public partial class WeakReference : System.Runtime.Serialization.ISerializable { [System.Security.SecuritySafeCriticalAttribute] protected WeakReference() { } @@ -3942,14 +3942,16 @@ namespace System protected WeakReference(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public virtual bool IsAlive { [System.Security.SecuritySafeCriticalAttribute][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]get { throw null; } } public virtual object Target { [System.Security.SecuritySafeCriticalAttribute][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]get { throw null; } [System.Security.SecuritySafeCriticalAttribute][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]set { } } + public virtual void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public virtual bool TrackResurrection { get { throw null; } } ~WeakReference() { } } - public sealed partial class WeakReference where T : class + public sealed partial class WeakReference : System.Runtime.Serialization.ISerializable where T : class { public WeakReference(T target) { } public WeakReference(T target, bool trackResurrection) { } ~WeakReference() { } + public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public void SetTarget(T target) { } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public bool TryGetTarget(out T target) { target = default(T); throw null; } }