2

Closed

Classes that implements IEnumerable are not introspected

description

I have .Net classes implemented in C# that inherits IDictionary. Since IDictionary inherits IEnumerable all the methods and properties are ignored when JsClr class wrapps an instance of these classes.

When exposing IDictionary objects to jint it would be nice if the the IDictionary interface is checked first (TryGetValue) and then check the members of the class.

My workaround is to just comment out the check in JsClr for IEnumerable that prevents introspection(dosent seem to break any of tests - 3 failing before and after in trunk). Another is to implement delegating calls from the IDictionary methods to the correct class member.
Closed Oct 3, 2014 at 5:43 PM by sebastienros
Jint has been rewritten and this issue should be fixed in the new version. Please check it on https://github.com/sebastienros/jint or on using the nuget package here: https://www.nuget.org/packages/Jint/

comments