Depending on how you’re code works in C#, the way you
access it from Python may vary, but the basic approach is:
Compile your code as a .dll assembly, then from Python do:
import clr # Imports the pythonnet clr stuff
myObjectHandle = myAssembly.myClass()
[mailto:pythondotnet-bounces+btribble=[hidden email]] On Behalf Of munawwarah
Chamroo Sent: Thursday, February 18, 2010 1:34 AM To:[hidden email] Subject: [Python.NET] using c# method from python
I am currently developing an application where i need to
call some c# methods from my python code.
I want to know if this is possible to do using pythonnet and
how to do it.
for example i have a c# class foo and in foo i have a method
Now i need to call method bar() in my python code.