AssaultCubeHack icon indicating copy to clipboard operation
AssaultCubeHack copied to clipboard

Uneeded sp.Demand

Open striderwhite opened this issue 4 years ago • 0 comments

            //Get permission for working with UnmanagedCode
            //msdn.microsoft.com/en-us/library/xc5yzfbx(v=vs.110)
            //msdn.microsoft.com/en-us/library/ff648663.aspx#c08618429_020
            try {
                SecurityPermission sp = new SecurityPermission(SecurityPermissionFlag.UnmanagedCode);
                sp.Demand();
            } catch (Exception ex) {
                Console.WriteLine("Demand for SecurityPermissionFlag.UnmanagedCode failed: " + ex.Message);
            }  

According to the MSDN for this, this is probably not needed anymore.

striderwhite avatar Apr 28 '20 23:04 striderwhite