How to simplify these delegate functions? I'm looking for a way to simplify this code, because I could develop more overloads for TryThis  I made the string and int both of class Nullable so that in each overloaded function, the catch block could return the same value.  

The problem is I need, if possible, no overloads of TryThis.  The function overloads are both identical, except for the type of delegate they are passed.  Is there some kind of variable that would encompass any delegate that can be executed? 

class Program
{
    delegate int MyIntReturn();
    delegate string MyStringReturn();
    static private MyIntReturn ReadInt = () =&gt; {return int.Parse(Console.ReadLine()); };
    static private MyStringReturn ReadString = () =&gt; { return Console.ReadLine(); };

    static private Nullable&lt;int&gt; TryThis(MyIntReturn MyAction)
    {
        try
        {
            return MyAction();
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.ToString());
            return null;
        }
    }
    private static Nullable&lt;string&gt; TryThis(MyStringReturn MyAction)
    {
        try
        {
            return MyAction();
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.ToString());
            return null;
        }
    }


}
You can use the generic delegate Func&lt;&gt;:

static private T TryThis&lt;T&gt;(Func&lt;T&gt; MyAction) {
    try {
        return MyAction();
    } catch (Exception ex) {
        Console.WriteLine(ex.ToString());
        return default(T);
    }
}