Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Add support for calling Contains on a literal array in a Where expression. #15

Open
sflanker opened this issue Jun 20, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@sflanker
Copy link
Member

Using a local/static/instance variable collection for a Contains call in a Where expression works, but constructing a literal array within the expression does not work. The implementation will be complicated by the possibility that the array is not constant, but includes an item from the expression input.

Test case:

[Fact(Skip = "TODO: Not Supported")]
public override void Where_LiteralArray_Contains() {
}

Expected:

Both obj => (new[] { 1, 2, 3 }).Contains(obj.Field) and obj => (new[] { obj.Field1, obj.Field2, obj.Field3 }).Contains(1) should be functional.

@sflanker sflanker added the enhancement New feature or request label Jun 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant