You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the suggestion @KRSatpute . Unfrotunately for now it is not possible. We should probably add a ParseAsDynamic or something similar. Of course pull requests are welcome 😄
I am working with dynamic objects and so far managed the work around for objects but it is difficult to work with dynamically created collections.
Ex:
Type dynamicListType = typeof(List<>).MakeGenericType(AnotherDynamicInferredType)
var dynamicList = Activator.CreateInstance(dynamicListType);
Use case:
string expression = "object.Source == "Productions"";
var dynamicWhere = interpreter.ParseAsDelegate<Func<dynamicType, bool>>(expression, "object");
var result3 = (dynamicList).Where(dynamicWhere);
What I want:
Some way for ParseAsDelegate to figure out {AnotherDynamicInferredType}, {dynamicListType} and {dynamicList}
The text was updated successfully, but these errors were encountered: