We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 48e50b3 + 39e5e37 commit c403117Copy full SHA for c403117
CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs
@@ -3828,7 +3828,15 @@ protected virtual MethodInfo TryToCastMethodParametersToMakeItCallable(MethodInf
3828
}
3829
else
3830
{
3831
- parametersCastOK = false;
+ var converter = parameterType.GetMethod("op_Implicit", new[] { modifiedArgs[a].GetType() });
3832
+ if(converter != null)
3833
+ {
3834
+ modifiedArgs[a] = converter.Invoke(null, new[] { modifiedArgs[a] });
3835
+ }
3836
+ else
3837
3838
+ parametersCastOK = false;
3839
3840
3841
3842
0 commit comments