Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

EventHandler

Narumikazuchi edited this page Sep 17, 2021 · 9 revisions

Variants

EventHandler
EventHandler<TSender, TEventArgs>

EventHandler

Represents the method that will handle an event without event data.

delegate void EventHandler<TSender>([System.Diagnostics.CodeAnalysis.DisallowNull] TSender sender, 
                                    [System.Diagnostics.CodeAnalysis.MaybeNull] EventArgs? e);

EventHandler<TSender, TEventArgs>

Represents the method that will handle an event with certain event data.

delegate void EventHandler<TSender>([System.Diagnostics.CodeAnalysis.DisallowNull] TSender sender, 
                                    [System.Diagnostics.CodeAnalysis.MaybeNull] TEventArgs? e)
    where TEventArgs : EventArgs;

Clone this wiki locally