LINQ Operator '==' cannot be applied to operands of type 'char' and 'string'

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'

Leave a Comment