Remove unuse static field in ImageDrawing.cs#5651
Conversation
|
This file seems to be generated and it says at the top of the file to not edit it manually: https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageDrawing.cs#L7. I thinkg that this field is generated from this entry in the xml: https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/xml/Resource.xml#L3426. You can try removing the entry in the xml and then running the codegen (I haven't tried running the codegen but you can take a look at the readme). It also generates some C++ code so this field might be used elsewhere. |
|
Thank you @ThomasGoulet73 for highlighting the catch. |
|
Haha, I should've paid more attention |
|
@lindexi, Can we go ahead and close this PR ?? |
|
@dipeshmsft Yes. |
Description
Remove unuse static field in ImageDrawing.cs
Customer Impact
No.
Regression
.NET 7
Testing
Just CI
Risk
Low.