Resolved CS8600 error on numerous lines

C# learner

Active member
Joined
Dec 22, 2022
Messages
40
Programming Experience
Beginner
I recently installed Community Visual Studio from Enterprise Visual Studio. I found that when I am using Community Visual Studio that I keep getting a CS8600 error on numerous lines of code. I know it has something to do with null but don't know how to resolve the issue. Here is an example:

while ((line = sr.ReadLine()) != null)

The sr.ReadLine is underlined green and giving me a CS8600 error. How do I resolve this issue?
 
Back
Top Bottom