System.Linq.Dynamic.Core icon indicating copy to clipboard operation
System.Linq.Dynamic.Core copied to clipboard

Type name matching does not seem to follow case sensitivity settings

Open glopesdev opened this issue 3 months ago • 0 comments

Currently migrating from the old System.Linq.Dynamic to System.Linq.Dynamic.Core and found out that case-sensitivity does not seem to be applied the same way to type conversions. For example, the below parse statement will fail:

var expression = DynamicExpressionParser.ParseLambda(typeof(object), null, "int16(5)");

with the message "No applicable method 'int16' exists in type 'Object'".

In the old System.Linq.Dynamic this script used to work, and from exploring this new library it looks like the default should be to support case-insensitive matching as well.

I checked that method and property name matching seems to be case-insensitive, but for some reason type name matching seems to be case-sensitive so I thought to raise this issue.

glopesdev avatar Sep 26 '25 16:09 glopesdev