you’re comparing string and char type
replace
where r1[4] == "I"
/ where r1[4] == "O"
with
where r1[4] == 'I'
/ where r1[4] == 'O'
More Related Contents:
- How to display words that appear more than 'x' times in a text? [closed]
- convert sql query into lambda expression [closed]
- How to LINQ List and flatten it using SelectMany?
- LINQ – Full Outer Join
- Paging with LINQ for objects
- Pivot data using LINQ
- Using Linq to get the last N elements of a collection?
- Calling generic method with a type argument known only at execution time [duplicate]
- Searching a tree using LINQ
- Value cannot be null. Parameter name: source
- LINQ join two DataTables
- Recursive Hierarchy – Recursive Query using Linq
- Filter/Search using Multiple Fields – ASP.NET MVC
- Getting pair-set using LINQ
- How to select only the records with the highest date in LINQ
- Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported
- C# Linq intersect/except with one part of object
- Entity-framework code is slow when using Include() many times
- The operation cannot be completed because the DbContext has been disposed using MVC 4
- Cannot implicitly convert type ‘System.Collections.Generic.IEnumerable’ to ‘System.Collections.Generic.List
- Linq to Objects – return pairs of numbers from list of numbers
- How to create LINQ Query from string?
- From Eric Lippert’s blog: “don’t close over the loop variable” [duplicate]
- Max return value if empty query
- Sort one list by another
- Get sum of two columns in one LINQ query
- Add the where clause dynamically in Entity Framework
- Select multiple fields group by and sum
- C# Searching for files and folders except in certain folders
- What is the difference between LINQ ToDictionary and ToLookup