File: System\Windows\Forms\Design\DesignerActionVerbItem.cs
Web Access
Project: src\src\System.Windows.Forms.Design\src\System.Windows.Forms.Design.csproj (System.Windows.Forms.Design)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.ComponentModel.Design;
 
internal class DesignerActionVerbItem : DesignerActionMethodItem
{
    private readonly DesignerVerb _targetVerb;
 
    public DesignerActionVerbItem(DesignerVerb verb) : base(null, null, null)
    {
        Debug.Assert(verb is not null, "All callers check whether the verb is null.");
        _targetVerb = verb;
    }
 
    public override string Category => "Verbs";
 
    public override string DisplayName => _targetVerb.Text;
 
    public override void Invoke() => _targetVerb.Invoke();
}