If I have a method that takes in delegate as argument, is there a difference between passing in a delegate (that points to a method) and passing in the method name? If so, what are the advantage/disadvantage for each approach?
delegate void MyDel();
static void MyFunc(MyDel)
{
MyDel();
}
static void SomeFunc(){//do stuff}
static void Main()
{
MyDel del= new MyDel(SomeFunc);
//What's the difference between the approaches below?
del();
MyFunc(SomeFunc);
}