Daniel Hunt

Daniel Hunt

  • NA
  • 14
  • 4.6k

New Project in Visual Studio giving Error -

May 2 2018 2:00 AM
I am having difficulty understanding the layout of code for these simple programs.  If someone could take a look and point me in the right direction I would appreciate it.  The simple code is attached and the error is below:
 
 
Severity Code Description Project File Line Suppression State
Error CS0106 The modifier 'static' is not valid for this item ConsoleApp2 C:\Users\admin\source\repos\ConsoleApp2\ConsoleApp2\Program.cs 9 Active
 
Severity Code Description Project File Line Suppression State
Warning CS8321 The local function 'IfStatement' is declared but never used ConsoleApp2 C:\Users\admin\source\repos\ConsoleApp2\ConsoleApp2\Program.cs 9 Active
 
 
 

Attachment: NewZip.zip

Answers (8)