<div>PLEASE IGNORE MY PREVIOUS POST with the same title, I accidentally sent it before I was finished cleaning up the code.</div><div><br></div><div>Hi there,<br></div><div>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:</div>
<div><br></div><div>public class foo<br>{<br> public foo()<br>
{<br>          ...<br> }<br> ...<br>}<br></div><div><br></div><div>I put this into the ScriptScope I use by doing:</div><div><br></div><div>scope.SetVariable("fooclass", typeof(foo));</div><div><br></div>
<div>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:</div><div>
<br></div><div>class bar(fooclass):<br> def __init__(self):<br>          Name = "Unused"<br> ...</div><div><br></div><div>barobject = bar()<br></div><div><br></div><div>Well, I can't really say what this is about. Is it a Bug in IP or anything like a limitation?<br>
</div><div>Greetings, Marcel</div>