Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uneeded sp.Demand #9

Open
striderwhite opened this issue Apr 28, 2020 · 0 comments
Open

Uneeded sp.Demand #9

striderwhite opened this issue Apr 28, 2020 · 0 comments

Comments

@striderwhite
Copy link

            //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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant