Comments (7)
@karelz accepted
from winforms.
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.
A "remove unused" would clean those unused usings up too in one gesture.
from winforms.
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.
💭 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.
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.
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)
- The description for design properties within DemoControl application is not appearing for every control. HOT 2
- System.Private.Windows.Core is not included in the runtime pack HOT 7
- ContextMenuStrip show on wrong monitor HOT 6
- Cell using 'DisplayMember' to find and set value resulting in setting bad value. HOT 6
- System.Data.DataColumn serializes some properties with a default value (different from the .NET Framework)
- Using WinForms Controls provided via NuGet inside the Out-Of-Process Designer without copying them to the build output HOT 5
- Unstable unit test: System.Windows.Forms.Tests.DataGridViewTests.DataGridView_OnColumnHeadersHeightChanged_InvokeWithHandle_CallsColumnHeadersHeightChanged(columnHeadersWidthSizeMode: EnableResizing, columnHeadersVisible: True, eventArgs: null)
- Unstable unit test: System.Windows.Forms.UITests.ButtonTests.Button_DialogResult_SpaceToClickFocusedButtonAsync
- Unstable unit test: System.Windows.Forms.UITests.ButtonTests.Button_Hotkey_Fires_OnClickAsync
- Unstable unit test: System.Windows.Forms.UITests.ButtonTests.Button_CancelButton_EscapeClicksCancelButtonAsync
- Unstable unit test: System.Windows.Forms.UITests.ButtonTests.Button_Press_Enter_Fires_OnClickAsync
- Unstable unit test: System.Windows.Forms.UITests.ListViewTests.ListView_Group_NavigateKeyboard_SucceedsAsync
- Unstable unit test: System.Windows.Forms.UITests.NumericUpDownTests.NumericUpDownAccessibleObject_Focused_ReturnsCorrectValueAsync
- WinForms fails to build with a nightly SDK HOT 2
- Massive GDI (region) leak. Help needed. HOT 9
- Unresponsiveness issue during Real-Time Updates in Winforms DataGridView HOT 2
- [ARM64]The Form1.cs[Design] page cannot load successfully after installed the latest .NET 9.0 Preview4 or Preview5 HOT 3
- GDI/BitBlt features for .NET Core?
- Add GetData<T> Method to Clipboard HOT 2
- The selected control should have a solid border in the DemoConsole application
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winforms.