bool contains = list.Any(yourString.Contains);
This is searching for substrings, so it doesn’t compare “words”.
Here is a version that ignores the case:
bool contains = list.Any(s => yourString.IndexOf(s, StringComparison.CurrentCultureIgnoreCase) >= 0);
More Related Contents:
- Simultaneous equations in C# LINQ [closed]
- LINQ’s Distinct() on a particular property
- Convert Linq expression “obj => obj.Prop” into “parent => parent.obj.Prop”
- Update all objects in a collection using LINQ
- C# Linq Group By on multiple columns [duplicate]
- How would you do a “not in” query with LINQ?
- Alphanumeric sorting using LINQ
- Using IQueryable with Linq
- How do I sort strings alphabetically while accounting for value when a string is numeric?
- LINQ Grouping dynamically
- Linq list of lists to single list
- Query Microsoft Access MDB Database using LINQ and C#
- LINQ Where Ignore Accentuation and Case
- Edit specific Element in XDocument
- ILookup vs. IGrouping
- Enumerating Collections that are not inherently IEnumerable?
- Comparing 2 objects and retrieve a list of fields with different values
- Recursive LINQ query: select item and all children with subchildren
- C# Linq where clause as a variable
- Find if listA contains any elements not in listB
- Find all child controls of specific type using Enumerable.OfType() or LINQ
- Creating dynamic queries with entity framework
- How to merge a list of lists with same type of items to a single list of items?
- Split an IEnumerable into fixed-sized chunks (return an IEnumerable where the inner sequences are of fixed length) [duplicate]
- Remove item from list based on condition
- Linq “Could not translate expression… into SQL and could not treat it as a local expression.”
- How to convert DataTable to class Object?
- Accessing System Databases/Tables using LINQ to SQL?
- How to merge two lists using LINQ?
- C# Linq to SQL: How to express “CONVERT([…] AS INT)”?