Hi there,
I have a problem with my application. It's written in C# and embeds
IronPython. In C#, I have a class that looks like this:
public class foo
{
public foo()
{
...
}
...
}
I put this into the ScriptScope I use by doing:
scope.SetVariable("fooclass", typeof(foo));
Operations like: a = fooclass() work without any problem, but the following
IronPython does not work and raises the error: Cannot create instances of
RuntimeType because it has no public constructors. Code:
class bar(foo):
def __init__(self):
Name = "Unused"
def TestFunction(self):
return "Juhu!"
ObjTileTypeUnused = TileTypeUnused()
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com