-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ExpressionVisitor? #1089
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
Comments
++ The reason we rolled our own because back when we introduced it .NET 4.0 was still fresh and we did in fact support .NET 3.5. We stopped supporting .NET 3.5 for some time now so I'm definitively open to changing it to the one baked in 4.0. |
Cool, however be aware that it's not really a drop-in replacement. Not just because of the different method signatures but also because these new validations mean that an unexpected exception could be thrown, so it would need some testing. |
There are several tests here: And by proxy of all the serialization tests it should be covered, The only method not tested/covered now is:
Which is unused and should be removed. What we support:
(any combination to any depth) We have an open ticket to support passing variables to There is also the MemberInfoResolver which is used by the MapPropertiesFor() on ConnectionSettings() with tests here If its functionally the same we can pull it in |
Thanks, that was very detailed 👍 |
I noticed that NEST has an old
ExpressionVisitor
from the times when it was part of the sample codes of LINQ.This would make sense if NEST were compatible with .NET 3.5, but the DLL that comes with the NuGet package is .NET 4.0 .
Is there any other reason to keep that around?
IMHO .NET's current ExpressionVisitor is cleaner and prevents some invalid rewrites.
I'm asking not just to potentially clean this up but because I have some small code using ExpressionVisitor that I might contribute.
The text was updated successfully, but these errors were encountered: