-
Notifications
You must be signed in to change notification settings - Fork 56
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
Type Initializer throwing an error #45
Comments
It's due to VB.NET generating a different expression tree than C# for anonymous type projections. VB.NET wraps the expression tree in an additional cast expression which Jot was not expecting. I've updated Jot to handle the expression trees that VB.NET generates and have pushed the updated code to GitHub and an updated NuGet package to nuget.org. Let me know if the update solves it for you. |
Closing this as the latest commit resolves the problem. @SezMe please let me know if you still have issues with this. |
I still get an error, but it now raises a new one:
This is the code that throws the exception:
I'm using 2.1.8 which NUGet says is the latest version. |
For a wpf Window called GeoElements with a grid column named C0, I have:
Trackr.Configure(Of GeoElements)().Property(Function(g) New With {Key g.C0.Width}).PersistOn(NameOf(GeoElements.Closing)).StopTrackingOn(NameOf(GeoElements.Closing))
This throws an error at run-time:
The text was updated successfully, but these errors were encountered: