Answers for "event keyword C#"

C++
1

event keyword C#

//EN
The event keyword is used to declare an event in a publisher class.
//FR
Le mot clé event sert à déclarer un événement dans une classe d’éditeur.

public event System.Action myEvent;
myEvent?.Invoke();

public event System.Action<T> myEventWithType;
myEventWithType?.invoke(T);
Posted by: Guest on July-18-2021

Browse Popular Code Answers by Language