diff options
Diffstat (limited to 'src/mscorlib/src/System/WeakReference.cs')
-rw-r--r-- | src/mscorlib/src/System/WeakReference.cs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mscorlib/src/System/WeakReference.cs b/src/mscorlib/src/System/WeakReference.cs index 27a9ab7744..b30ea8145c 100644 --- a/src/mscorlib/src/System/WeakReference.cs +++ b/src/mscorlib/src/System/WeakReference.cs @@ -19,7 +19,6 @@ namespace System { using System.Diagnostics.Contracts; [System.Runtime.InteropServices.ComVisible(true)] #if !FEATURE_CORECLR - [SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags=SecurityPermissionFlag.UnmanagedCode)] // Don't call Object::MemberwiseClone. #endif [Serializable] public class WeakReference : ISerializable @@ -31,7 +30,6 @@ namespace System { #if FEATURE_CORECLR // Migrating InheritanceDemands requires this default ctor, so we can mark it SafeCritical - [SecuritySafeCritical] protected WeakReference() { Contract.Assert(false, "WeakReference's protected default ctor should never be used!"); throw new NotImplementedException(); @@ -68,7 +66,6 @@ namespace System { // public extern virtual bool IsAlive { [MethodImplAttribute(MethodImplOptions.InternalCall)] - [SecuritySafeCritical] get; } @@ -85,10 +82,8 @@ namespace System { // public extern virtual Object Target { [MethodImplAttribute(MethodImplOptions.InternalCall)] - [SecuritySafeCritical] get; [MethodImplAttribute(MethodImplOptions.InternalCall)] - [SecuritySafeCritical] set; } @@ -99,10 +94,8 @@ namespace System { // This is needed for subclasses deriving from WeakReference, however. // Additionally, there may be some cases during shutdown when we run this finalizer. [MethodImplAttribute(MethodImplOptions.InternalCall)] - [SecuritySafeCritical] extern ~WeakReference(); - [SecurityCritical] public virtual void GetObjectData(SerializationInfo info, StreamingContext context) { if (info==null) { @@ -114,11 +107,9 @@ namespace System { } [MethodImplAttribute(MethodImplOptions.InternalCall)] - [SecuritySafeCritical] private extern void Create(Object target, bool trackResurrection); [MethodImplAttribute(MethodImplOptions.InternalCall)] - [SecuritySafeCritical] private extern bool IsTrackResurrection(); } |