namespace WindowsFormsApp1
{
public delegate void GetMessage(string m);
public class EventExample
{
public event GetMessage _msg;
public void Test(string s)
{
if(s == "Event")
_msg?.Invoke("Hello I`m Event:)");
}
}
}