X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Runtime.InteropServices%2FRuntimeEnvironment.cs;h=d2808208368d3309fc4fd3ae9ea82b32ca756d82;hb=7efe0456a36a4f95b277720c28a63580ff4f29bb;hp=2b2e168ac4396c50e9549750f8880e7b9eaea852;hpb=c39d7ce9985a7067c1cbf44188007c9433901940;p=mono.git diff --git a/mcs/class/corlib/System.Runtime.InteropServices/RuntimeEnvironment.cs b/mcs/class/corlib/System.Runtime.InteropServices/RuntimeEnvironment.cs index 2b2e168ac43..d2808208368 100644 --- a/mcs/class/corlib/System.Runtime.InteropServices/RuntimeEnvironment.cs +++ b/mcs/class/corlib/System.Runtime.InteropServices/RuntimeEnvironment.cs @@ -36,9 +36,7 @@ using System.Security.Permissions; namespace System.Runtime.InteropServices { -#if NET_2_0 [ComVisible (true)] -#endif public class RuntimeEnvironment { public RuntimeEnvironment () @@ -67,7 +65,7 @@ namespace System.Runtime.InteropServices return Path.GetDirectoryName (typeof (int).Assembly.Location); } - [SecurityPermission (SecurityAction.Demand, UnmanagedCode = true)] + [SecuritySafeCritical] public static string GetSystemVersion () { return "v" + Environment.Version.Major + "." + Environment.Version.Minor + "." + Environment.Version.Build;