Code Monkey home page Code Monkey logo

Comments (7)

kevingosse avatar kevingosse commented on May 13, 2024 1

@karelz accepted

from winforms.

danmoseley avatar danmoseley commented on May 13, 2024

I would literally grep for *Assert and *Permission and remove those, then experimentally remove all using statements for System.Security, System.SEcurity.Permissions, and System.Security.Policy and see what if any compile errors you get. Those may be more hits.

from winforms.

clairernovotny avatar clairernovotny commented on May 13, 2024

A "remove unused" would clean those unused usings up too in one gesture.

from winforms.

kevingosse avatar kevingosse commented on May 13, 2024

Before I go too far on this (there's a lot of them), are we absolutely we want to remove all the SecurityPermission/UIPermission/Assert stuff? I understand they're no-op on .net core, but coreclr/corefx keep a few of them for the parts of code that are shared with .net framework. Are we positive we don't need to do the same thing for winforms?

from winforms.

sharwell avatar sharwell commented on May 13, 2024

💭 I'm not sure why we would be removing Debug.Assert calls. I sometimes use those to document assumptions made at different points in code and I wouldn't be surprised to see similar things in some places here.

from winforms.

kevingosse avatar kevingosse commented on May 13, 2024

The CAS asserts, not the debug asserts :)

For instance, https://github.com/dotnet/winforms/blob/master/src/System.Windows.Forms/src/System/Windows/Forms/WinFormsSecurity.cs#L488

from winforms.

karelz avatar karelz commented on May 13, 2024

Thanks for picking up the issue @kevingosse! I added you to collaborators list. Once you accept, ping me here and I will be able to assign it to you. (assigning to myself temporarily)

@dotnet/dotnet-winforms FYI about collaborator trick (with Read permissions) - see https://github.com/dotnet/winforms/settings/collaboration

from winforms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.