diff --git a/src/mscorlib/Common/PinnableBufferCache.cs b/src/mscorlib/Common/PinnableBufferCache.cs index c850663196ce..7368c2d92736 100644 --- a/src/mscorlib/Common/PinnableBufferCache.cs +++ b/src/mscorlib/Common/PinnableBufferCache.cs @@ -45,7 +45,9 @@ internal sealed class PinnableBufferCache /// This is only used in mscorlib. /// #if (ENABLE || MINBUFFERS) +#pragma warning disable 618 [EnvironmentPermission(SecurityAction.Assert, Unrestricted = true)] +#pragma warning restore 618 [System.Security.SecuritySafeCritical] #endif internal PinnableBufferCache(string cacheName, Func factory)