Delegate error in C#
<p>My code is as follows:</p>

<pre><code>class PropertyRetrievalClass
{
    public delegate object getProperty(string input);

    public object get_Chart_1(string iput)
    {
        Console.WriteLine(iput);
        return "";
    }
    public object get_Chart_2(string iput)
    {
        Console.WriteLine(iput);
        return "";
    }

    public PropertyRetrievalClass() { }
}

public static void Main()
        {
            int i = 1;
            PropertyRetrievalClass obj = new PropertyRetrievalClass();

            Delegate del = Delegate.CreateDelegate(typeof(PropertyRetrievalClass), obj, "get_chart_" + i.ToString());
            string output=  del("asldkl");
        }
</code></pre>

<p>It is giving me an error saying "error CS0118: 'del' is a 'variable' but is used like a 'method'"</p>

<p>What should I do to use this delegate? I want to call any of "get_chart_1" or "get_chart_2" function and both of them take a string input?</p>

<p>Thanks in advance...</p>
