[IronPython] Declare a class in Python and use it in .net
dinov at exchange.microsoft.com
Fri Aug 3 08:22:37 PDT 2007
Because Python doesn't create normal .NET classes they basically have to be created from Python code. You could hand a delegate (just a Python function that matches the delegates # of arguments) off to the C# code and call that from C# and get the result back.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ori
Sent: Thursday, August 02, 2007 10:53 PM
To: users at lists.ironpython.com
Subject: [IronPython] Declare a class in Python and use it in .net
I have a .net class (in some assembly). I want to inherit from it and
override a function in it - with python code. I'm using c# to compile the
python code, and after the compilation is done I want to create an instance
of the new class inside c#.
Is there a way to do it?
View this message in context: http://www.nabble.com/Declare-a-class-in-Python-and-use-it-in-.net-tf4210730.html#a11977831
Sent from the IronPython mailing list archive at Nabble.com.
Users mailing list
Users at lists.ironpython.com
More information about the Users