Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
This repository was 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

@sflanker

Description

@sflanker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions