From 3ba0b17b6f80cde81a2e3dfc8f4b1ab74e77e75f Mon Sep 17 00:00:00 2001 From: Alex Ghiondea Date: Wed, 22 Jul 2015 10:19:57 -0700 Subject: [PATCH] Remove the SecuritySafeCritical from the ParseTargetFrameworkName. This attribute was added as part of the initial implementation and is no longer needed in the current version. What this attribute does it allows us to call SecurityCritical methods from our code. However, we no longer have the need to do that. Additionally, having this attribute prevents libraries that are explicity SecurityTransparent from compiling this code in their assembly (SecAnnotate would complain). [tfs-changeset: 1504639] --- src/mscorlib/src/System/AppContext/AppContextDefaultValues.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mscorlib/src/System/AppContext/AppContextDefaultValues.cs b/src/mscorlib/src/System/AppContext/AppContextDefaultValues.cs index 4b685e5..cfda103 100644 --- a/src/mscorlib/src/System/AppContext/AppContextDefaultValues.cs +++ b/src/mscorlib/src/System/AppContext/AppContextDefaultValues.cs @@ -23,7 +23,6 @@ namespace System /// We have this separate method for getting the parsed elements out of the TargetFrameworkName so we can /// more easily support this on other platforms. /// - [System.Security.SecuritySafeCritical] private static void ParseTargetFrameworkName(out string identifier, out string profile, out int version) { #if FEATURE_CORECLR -- 2.7.4