© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
9 replies
Dreams

❔ Linq statement doesn't work

   .Where(i => strArray.Any(s => i.Name.Contains(s)))
   .Where(i => strArray.Any(s => i.Name.Contains(s)))

I have an array of strings
[ "text1", "text2", "text3"]
[ "text1", "text2", "text3"]
and I want to find all Names that have a substring such as:
text1somethingsomething
text1somethingsomething
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

✅ T-SQL Statement in Linq
C#CC# / help
3y ago
❔ Help with EF Core Linq statement
C#CC# / help
4y ago
❔ Filter doesn't work
C#CC# / help
3y ago