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

Where filter does not handle truthy values correctly #620

Open
williamb1024 opened this issue Jan 25, 2024 · 0 comments
Open

Where filter does not handle truthy values correctly #620

williamb1024 opened this issue Jan 25, 2024 · 0 comments

Comments

@williamb1024
Copy link

When using the where filter with a single argument, the filter does not perform truthy comparisons. The equality comparison is performed with the property value controlling.

if (itemValue.Equals(targetValue))

Switching itemValue and targetValue, such that targetValue is controlling would result in truthy comparisons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant