I want to have an event that takes an enum only as the argument. For example
public enum MyEvents{ Event1 } // how do I declare this to take enum MyEvent
Example with no parameters:
delegate void NewEventHandler(); public event NewEventHandler OnEventHappens;
And from another class, you can subscribe to
otherClass.OnEventHappens += ExecuteThisFunctionWhenEventHappens;
And declare that function with no parameters.