Do you know that? 30% freelancers generate income from other solo work next

Explain how to implement Delegates in C#.NET

Here is an implementation of a very simple delegate that accepts no parameters.

public delegate void MyDelegate();// Declaration
class MyClass
{
public static void MyFunc()
{
Console.WriteLine("MyFunc Called from a Delegate");
}
public static void Main()
{
MyDelegate myDel = new MyDelegate(MyFunc);
myDel();
}
}