In visual studio..a red line appears under the code even if it is true code

Hello Rob,I just updated visual studio…the red lines didn’t change they are the same,i’m now repairing visual studio from the installer,hope this will solve the problem.

By the way I have two versions of visual studio on my computer,2015(i dont use it) and 2017 community which contains the problem