Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix WeakReference in mscorlib ref assembly #6808

Merged
merged 1 commit into from
Aug 19, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/mscorlib/ref/mscorlib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3933,7 +3933,7 @@ public partial struct Void
{
}
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
public partial class WeakReference
public partial class WeakReference : System.Runtime.Serialization.ISerializable
{
[System.Security.SecuritySafeCriticalAttribute]
protected WeakReference() { }
Expand All @@ -3942,14 +3942,16 @@ public WeakReference(object target, bool trackResurrection) { }
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<T> where T : class
public sealed partial class WeakReference<T> : 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; }
}
Expand Down