Repository navigation
Closed
Labels
area-System.DrawingenhancementProduct code improvement that does NOT require public API changes/additions
Milestone
Description
There are still some things that should be cleaned up and reorganized in the Windows version of System.Drawing.Common. Here is the list that I have developed while porting the code from the internal .NET Framework codebase:
- Clean up the formatting of the XML doc comments. They are using some defunct syntax that doesn't work or make sense anymore. @mellinoe Standardize all XML comments in System.Drawing & minor formatting fixes corefx#21589
- Normalize comment style (lots of weird "block-style" header comments, weird comment spacing, etc.) @mellinoe Standardize all XML comments in System.Drawing & minor formatting fixes corefx#21589
-
Reorganize interop code to match corefx guidelines.Not really feasible given the manual function loading that is necessary. - Remove unnecessary CodeAnalysis attributes.
- Remove reference to System.Security.Permissions. Remove System.Security.Permissions dependency from System.Drawing.Common. corefx#22232
- Remove System.Configuration.ConfigurationManager dependency. https://github.com/dotnet/corefx/issues/22233
- Consider moving code into Windows-specific folders or filenames in preparation of x-plat version.
- Make sure that file names and file structure are consistent with the namespace and type names contained in each file. Move System.Drawing.Common files to the correct folder corefx#20987
- Enable or remove
FINALIZATION_WATCHcode blocks. - Enable or remove
FEATURE_SYSTEM_EVENTScode blocks. Tracked by https://github.com/dotnet/corefx/issues/21319 - Use string resources in Unix version. Tracked by https://github.com/dotnet/corefx/issues/23749
- Do a dead-code pass after cleanup and reorganization. (Use ILLink to help) -- opened https://github.com/dotnet/corefx/issues/21296
Metadata
Metadata
Assignees
Labels
area-System.DrawingenhancementProduct code improvement that does NOT require public API changes/additions
Activity
qmfrederik commentedon Jun 6, 2017
@mellinoe I also noticed that there are quite some inconsistencies in file names:
mellinoe commentedon Jun 6, 2017
I've retained the file structure and file names from the internal code base, so that is my excuse for that 😄 .
We should clean it up, though. I'll add another check for that.
qmfrederik commentedon Jun 27, 2017
@mellinoe I noticed the license headers seem to be off for these files:
danmoseley commentedon Jan 4, 2022
Does not seem useful any more