public delegate void myDelegateType();
public static void myMethod()
Console.WriteLine($"myMethod");
public static void myMethod2()
Console.WriteLine($"myMethod2");
Console.WriteLine($"myMethod3");
public static void Main()
Console.WriteLine($"Hello World {x} {x}");
myDelegateType myDelegate = myClass.myMethod;
myDelegateType myDelegate2 = new myDelegateType(myClass.myMethod2);
myClass myObject = new myClass();
myDelegateType myDelegate3 = myObject.myMethod3;