File: System\Windows\Forms\ComponentModel\COM2Interop\GetNameItemEvent.cs
Web Access
Project: src\src\System.Windows.Forms\src\System.Windows.Forms.csproj (System.Windows.Forms)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Windows.Forms.ComponentModel.Com2Interop;
 
internal delegate void GetNameItemEventHandler(Com2PropertyDescriptor sender, GetNameItemEvent e);
 
internal class GetNameItemEvent : EventArgs
{
    public GetNameItemEvent(object? defaultName) => Name = defaultName;
 
    public object? Name { get; set; }
 
    public string NameString => Name?.ToString() ?? string.Empty;
}