dynamicexpresso / DynamicExpresso

C# expressions interpreter
http://dynamic-expresso.azurewebsites.net/
MIT License
1.99k stars 374 forks source link

Are implicit operators supported? Or am I not adding correct reference? #285

Open ricardSiliuk opened 1 year ago

ricardSiliuk commented 1 year ago

Hi,

Wanted to use this in another project but I'm facing issue where it seems like implicit operator is not picked up.

Reproducible code here: https://github.com/ricardSiliuk/dynamicespresso-check

Exception I'm getting is:

The binary operator Equal is not defined for the types 'Extendable.Date' and 'System.String'.

but since implicit conversion of string to Date is defined I'd expect this to still use correct ==. Is this supported?

davideicardi commented 1 year ago

I think that the problem is that "implicit conversions" are not supported for now.

metoule commented 1 year ago

The issue has already been raised in #248