eventos c#
public class EventoArgs
{
public string Texto {get;}
public EventoArgs(string texto)
{
this.Texto = texto;
}
}
public delegate void ManejadorEventosEjemplo(object sender, EventoArgs e)
public class ClasePrueba
{
public event ManejadorEventosEjemplo EventoEjemplo;
protected virtual void LlamarEvento()
{
EventoEjemplo?.Invoke(this, new EventoArgs("Hola"));
}
}
Also in C#:
- How to execute script in C#
- combine two arraylist c#
- create asp.net which send email and sms using own api
- insert variables into string c#
- c# new list object
- transform.Translate movement
- c# find index element array
- pass parameter to thread c#
- ubuntu: how to open the terminal from c#
- for each property in object c#
- disable mouse unity
- uinput dialog uwp c#
- c# string to datetime
- devexpress objectspace to session
- c# string code ascii
- countdown script in unity
- C# how to get public key for InternalsVisibleTo
- c# multi threading example
- c# long to int
- unity how to move an object to another object
- c# initialize empty array
- unity get velocity of gameobject
- open udp socket c#
- unity face direction of movement