Matthias wrote:

> Yes, this was my main idea. It's very similar how SWIG directors handle 
> cross-language polymorphism. At runtime I'd create a class which derives  
> from TestClass and which overrides all virtual methods and properties. 
> The C# overrides would call the JSObject to see if there's a javascript 
> implementation for them. If there is, it will call the javascript 
> implementation, 
> otherwise it will call the base class's (TestClass in the example) 
> implementation.

Ok, then you totally want to look at NewTypeMaker in either IronRuby or 
IronPython
- they're slightly different but they both do the same thing and already handle 
all
sorts of corner cases w/ .NET types so it should be a good starting point.  
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to