Let's look at two pieces of code:
and:
For some reason, VS 2017 sees them differently:
And when I try to open the second file:
Sure, I can right click on the file and click on "View Code" but this behavior is weird.
Is it intended, or is it a bug?