[IronPython] Declare a class in Python and use it in .net

Dino Viehland dinov at exchange.microsoft.com
Fri Aug 3 17:22:37 CEST 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.

-----Original Message-----
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


Hello,

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?

Thanks,
Ori
--
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
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list