[Solved] LINQ Operator ‘==’ cannot be applied to operands of type ‘char’ and ‘string’

[ad_1]

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'

3

[ad_2]

solved LINQ Operator ‘==’ cannot be applied to operands of type ‘char’ and ‘string’