Skip to content
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

out keyword is not working with dynamic linq #741

Closed
rakesh94 opened this issue Aug 29, 2023 · 1 comment
Closed

out keyword is not working with dynamic linq #741

rakesh94 opened this issue Aug 29, 2023 · 1 comment
Assignees
Labels

Comments

@rakesh94
Copy link

Hi All,
My usecase is using dynamic linq with jsondocument objects. When searching for a key exists case, i have to try the TryGetProperty method of json document which has a out parameter.

Trying to give the linq with the out parameter causes the linq to crash saying that the out parameter is not a property or field of the classname.

Any suggestion to overcome would be helpful.

Exception
Exception message: Unhandled exception. No property or field 'out' exists in type 'classname'
Stack trace: From dotnetfiddle page -
Unhandled exception. No property or field 'out' exists in type 'Test' (at index 43)
Command terminated by signal 6

Fiddle 

https://dotnetfiddle.net/HslWa0
Line 42 works fine and line 45 crashes.

out is not considered a keyword and is trying to substitute with a variable from the class.
Am i doing this wrong or this needs a fix?

@StefH StefH self-assigned this Aug 30, 2023
@StefH StefH added the feature label Sep 9, 2023
@StefH
Copy link
Collaborator

StefH commented Sep 9, 2023

@rakesh94
This is not yet supported but it will be added in the next version.

#743

@StefH StefH closed this as completed Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants