How to define a variable as a Method?
<p>An Example:</p>

<pre><code>class SpecialButton
{
   public SpecialButton(ButtonConfig conf, Method definedMethod)
   {
       button = new Button();
       button.Location = conf.Location;
       //etc.
       button.Click += new System.EventHandler(definedMethod);
   }
}
</code></pre>

<p>is it possible to define a variable as method? I want to use the delegate for this click event, which comes from outside of this class.</p>

<p>Thank You.</p>
