Apr 12, 2010 at 2:38 AM
Edited Apr 12, 2010 at 2:54 AM
Not sure if this helps, but I had a similar issue.
I went around the issue with :
classA is a RuntimeType from IronPython (your ClassA is one)
From what I could gather, each type in IronPython has a corresponding CLR type, and you can instanciate that one.
The CLR type expects the RuntimeType as a first argument.
I *think* this mimicks the __new__ protocol from python.
Can anyone more versed in the DLR check if this is the correct way to create objects in runtime from c#?
EDIT: actually, scratch that Activator hack, I found out about ObjectOperations:
seems to be the correct way to do it