Passing Class/Instance Function as a Parameter in a Function
<p><strong>In C# is it possible to pass a class function(not static) as a parameter in a function?</strong></p>

<p>For some reason I get a compile error inside the function download because I am passing a 'class/instance' function as the parameter.</p>

<p>For example:</p>

<pre><code>public class MyPlane {
   Texture texture;

   virtual public void OnDownloadPlaneCallBack(WWW www) {
      // perform custom actions when/if file downloads correctly
      texture = www.texture;
   }

   virtual public void download() {
       Downloader.download("www.blah.com", OnDownloadPlaneCallBack);  // this gives a compile error? 
   }
}

public class Downloader {

    public static IEnumerator download(string url, Delegate callback) {
        WWW www = new WWW(url); 

        while(!www.isDone)
            yield return www;

         if (www.isDone) {
            callback.DynamicInvoke(www);
         }
    }
}
</code></pre>
