i want to create
public delegate void ValueChangedHandler(int value);
public delegate void ValueChangedHandler(Object sender, int value);
it refuses: how to do so or is it impossible ?
EDIT: Thanks for the answer, I understand the technical reason, but still what I want to do makes sense from expressivity point of view so I’m upset that .net framework doesn’t have a way to do so.
A delegate is a type. i.e if you are creating a delegate then you are actually making a class which is derived from System.Delegate.
So by this you have created a class ValueChangedHandler. So again if you are writing
then it is two classes with same name under a single namespace. So the compiler will not allow.