-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String(Null) raises Ambiguous error #284
Comments
Use qry.Select("string(\"null\")") |
Oops, my final question should not have mentioned "literal", but rather
|
Further info ... It seems String(null) is not valid C#
FYI I was using String(null) successfully in the old https://github.com/kahanu/System.Linq.Dynamic |
@StefH Could you please revisit this. How do I create null cast to a String? |
Hello @rockResolve, can please check with the latest version from System.Linq.Dynamic.Core ? I think this is fixed, see example: https://dotnetfiddle.net/3cA1gr |
All fixed now. Thanks |
When Selecting String(Null) I get the "Ambiguous invocation of 'String' constructor" error.
This seems pointless as any matching constructor should work.
I need the String cast because I Concat this with a query with another and the Concat insists on matching types.
How can I get a Select to return a null string from a literal null?
The text was updated successfully, but these errors were encountered: