How to load a C# dll in python?

The package Python for.NET and the Python Implementation IronPython 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 for more details.

Leave a Comment