Statics
Static Variables
public static string myStaticVariable = "hello";Static Events
public static event EventHandler MyStaticEvent;MyStaticEvent += MyStaticEvent_Fired;
private void MyStaticEvent_Fired(object sender, EventArgs e)
{
//code that runs when the event is fired
}MyStaticEvent?.Invoke(null, EventArgs.Empty);Last updated
Was this helpful?

