Error on if statement – cannot implicitly convert type to ‘bool’

c# equality operator is == and not =:

if (thecitytype == "City1")

Leave a Comment