I want to pass a method from type (class) like a parameter to another method, I don't know how to do this.
    class Program
    {
        static void Main(string[] args)
        {
            MyMethod(Foo.MethodA);
            MyMethod(Foo.MethodB);
        }
        public void MyMethod(???)
        {
        }
    }
    public class Foo
    {
        public void MethodA()
        {
        }
        public int MethodB(int val)
        {
            return val;
        }
    }
I want to do just that
    MyMethod(Foo.MethodA);
I don't want to pass method from a object but just from type (class)
 
    