Skip to content

Conversation

@duckblaster
Copy link
Contributor

Closes #421: Fix LINQ conversion of .Contains() and re-enable tests.

@adrianhall adrianhall self-requested a review December 11, 2025 13:21

Contains = GetMethod(
nameof(Enumerable.Contains), 1,
types => [typeof(IEnumerable<>).MakeGenericType(types[0]), types[0]]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: The MakeGenericType() call can be made into a static readonly so we don't re-allocate. Wouldn't worry about this one - I'll fix it next time round.

});
}

internal static Expression RemoveSpanImplicitCast(this Expression expression)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method needs a summary/parameters/returns XML comments.

@adrianhall adrianhall self-assigned this Dec 11, 2025
@adrianhall adrianhall added this to the 10.0.0 milestone Dec 11, 2025
@adrianhall
Copy link
Collaborator

All tests pass; including extended tests.

Great contribution! Thank you!

@adrianhall adrianhall merged commit db097bb into CommunityToolkit:main Dec 11, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

Support OData stringValue in (‘A’,’B’)

2 participants