What is the difference?
Using Delegate
public delegate void TestDelegate();
public TestDelegate delObj = SomeMethod;
public void S
It is not delegate vs event, an event is a kind-of property around a delegate.
In general you should always use the second scenario because in the first public TestDelegate delObj
is a public field, breaking Encapsulation.
You use events in the interface of a class, delegates as parameters to methods.