title: Delegate to an instance method cannot have null 'this'
body: <p>I am developing a C# .NET 2.0 application wherein at run-time one of two DLLs are loaded depending on the environment.  Both DLLs contain the same functions, but they are not linked to the same address-offset.  My question is regarding the function delegates in my application code.</p>
  
  <pre><code>public class MyClass
  {
      public delegate int MyFunctionDelegate(int _some, string _args);
  
      public MyFunctionDelegate MyFuncToCallFrmApp;
  
      public MyClass() : base()
      {
          this.MyFuncToCallFrmApp = new MyFunctionDelegate(this.MyFuncToCallFrmApp); // &lt;-- Exception thrown here.
      }
  
      public SomeFunction()
      {
          MyFuncToCallFrmApp(int _someOther, string _argsLocal);
      }
  }
  </code></pre>
  
  <p>When my code executes I get an <code>ArgumentException</code> of "Delegate to an instance method cannot have null 'this'."  What am I doing wrong?</p>