How to load a C# dll in python?
Question: how can I load a c# dll in python?

Do I have to put some extra code in the c# files? (like export in c++ files)

I don't want to use IronPython. I want to import a module to Python!


Answer: The package [Python for.NET](http://pythonnet.sourceforge.net/) and the Python
Implementation [IronPython](http://ironpython.net/) now work the same way.

Example for a C# DLL `MyDll.dll`:

    
    
    import clr
    clr.AddReference('MyDll')
    from MyNamespace import MyClass
    my_instance = MyClass()
    

See [this post](http://stackoverflow.com/questions/7367976/calling-a-c-sharp-
library-from-python) for more details.

