title: How to access methods from C# dll using ctypes?
body: <p>I'm in a bit over my head here and have never worked with dll's before so hopefully my question makes sense.</p>
  
  <p>I'm trying to use a C# dll that has a bunch of different classes in it. I've read other questions on here that show example code such as:</p>
  
  <pre><code>import ctypes
  lib = ctypes.cdll.LoadLibary('pathToDLL')
  lib.foo()
  </code></pre>
  
  <p>I understand that much. I haven't been able to figure out how to use methods that are in the classes in the dll if that makes sense. So if the dll contains a class called "Foo" with a method "bar" how do I call bar using ctypes? Also is ctypes the best way to try to access this dll or should I be using something else?</p>