Skip to content

Commit ceb6911

Browse files
authored
Add missing parameter to UpdateApplication method (#14102)
* Add missing parameter to UpdateApplication method Fixes dotnet/sdk#51480 * Suppress warning
1 parent b2bb33e commit ceb6911

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/System.Windows.Forms/System/Windows/Forms/Internal/WinFormsMetadataUpdateHandler.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
using System.Reflection.Metadata;
55
using System.Windows.Forms;
66

7+
#pragma warning disable IDE0060 // Remove unused parameter
8+
79
[assembly: MetadataUpdateHandler(typeof(WinFormsMetadataUpdateHandler))]
810

911
namespace System.Windows.Forms;
@@ -12,7 +14,7 @@ namespace System.Windows.Forms;
1214
internal static class WinFormsMetadataUpdateHandler
1315
{
1416
/// <summary>Invoked after a metadata update is applied.</summary>
15-
internal static void UpdateApplication()
17+
internal static void UpdateApplication(Type[]? updatedTypes)
1618
{
1719
// Repaint all open forms.
1820
foreach (Form openForm in Application.OpenForms)

0 commit comments

Comments
 (0)