title: how to use non static Dll functions written in c# , in Iron python?
body: <p>I wrote this simple example in c# :</p>
  
  <pre><code> using System;
   using System.Collections.Generic;
   using System.Linq;
    using System.Text;
  
    namespace DLLTest
    {
          public class MyDllTest
            {
                   public  int sumFunc(int a, int b)
                      {
  
          int sum = a + b;
          return sum;
  
      }
  
      public static string stringFunc(string a, int numT)
      {
             if (numT &lt; 0)
              {
                 string errStr = "Error! num &lt; 0";
                 return errStr;
              }
                else
               {
                   return a;
               }
  
           }
      }
  }
  </code></pre>
  
  <p>As you can see - in the first function i'm not using "static" .
  When I run in in Iron python using this code :</p>
  
  <pre><code>import sys
   import clr
  clr.addReferenceToFileAndPath(...path do dll...)
  
  from DLLTest import *
   res = MyDllTest.sumFunc(....HERE MY PROBLEM IS...)
  </code></pre>
  
  <p>when I pass 2 args - I get this error :</p>
  
  <pre><code>&gt;&gt;&gt; res = MyDllTest.sumFunc(4,5)
  
  Traceback (most recent call last):
    File "&lt;string&gt;", line 1, in &lt;module&gt;
  TypeError: sumFunc() takes exactly 3 arguments (2 given)
  </code></pre>
  
  <p>As I understand it asks for the fisrt argument to be from type "MyDllTest"
  but when trying to write : <code>a = new MyDllTest</code> I get an error.</p>
  
  <p>what should I do?
  Any help would be very appreciated!</p>