Answers for "c# event with parameter"

C#
0

c# event with parameter

//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);

//You can have several parameters
public event System.Action<T1,T2...T16> myEventWithSeveralTypes;
myEventWithType?.invoke(T1,T2...T16);
Posted by: Guest on August-12-2021

Code answers related to "c# event with parameter"

C# Answers by Framework

Browse Popular Code Answers by Language