Friday, July 25, 2008

How to create IronPython objects of types defined in C#

A new article from the "DLR Hosting blog" on creating Python types that inherit from .NET types when hosting IronPython.

Inheriting from .NET types is straightforward in IronPython. The builtin Python types are all .NET types implemented in C# and you can inherit from these, just as in CPython.

The interesting part of the blog entry is that it shows you to how to setup the hosting environment - to make your custom .NET types available to Python code running in the hosted Python engine.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.