-
Can I write the call in a shorter way? Desired effect: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
var engine = new Engine();
engine.SetValue("StringList", TypeReference.CreateTypeReference<List<string>>(engine));
Assert.Equal("a", engine.Evaluate("var list = new StringList(32); list.add('a'); return list[0];")); |
Beta Was this translation helpful? Give feedback.
-
But Not flexible enough
|
Beta Was this translation helpful? Give feedback.
But Not flexible enough
It is not possible to define a reference for each type in advance.
e.g.:
List<string>,List<int>,List<double>...