-
Hello all, Probably something obvious but I have a problem to use an c# enum from Jint. I have a simple class:
I share a instantiation of that class with the Jint Engine. What am I doing wrong ? Thank you ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Jint cannot see type engine.SetValue("TheType", TypeReference.CreateTypeReference(engine, typeof(TheType))) |
Beta Was this translation helpful? Give feedback.
-
Thank you |
Beta Was this translation helpful? Give feedback.
Jint cannot see type
MyClass.e
as it's a nested type, it only properties can be accessed this way. You can create explicit type reference if needed, see README: