The Wayback Machine - https://web.archive.org/web/20200623055101/https://github.com/dotnet/roslyn/issues/42045
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

Documentation on C# code to Expression conversion logic/quirks #42045

Open
MaceWindu opened this issue Feb 29, 2020 · 0 comments
Open

Documentation on C# code to Expression conversion logic/quirks #42045

MaceWindu opened this issue Feb 29, 2020 · 0 comments

Comments

@MaceWindu
Copy link

@MaceWindu MaceWindu commented Feb 29, 2020

Guys, is it possible to provide some kind of documentation on what changes C# compiler applies to expression tree when it generates Expression object from C# code in IQueryable context?

As ORM developers, who need to work with expressions, from time to time we hit issues, because we receive unexpected values from expressions. Like char or enum values is source code being replaced with integer constants in generated Expression. This is not a problem to implement proper handling of such cases if we aware of them, but without any documentation on this behavior, right now it is more like minefield - you find out each new case by accident.

Just several issues for reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.