Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDocumentation on C# code to Expression conversion logic/quirks #42045
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


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: