It looks like you have not saved the project, if the problem is not fixed I would suggest you to look at my previous answer
solved Issue in getting desired output using c# code on VS Code
It looks like you have not saved the project, if the problem is not fixed I would suggest you to look at my previous answer
solved Issue in getting desired output using c# code on VS Code