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
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
Warning CS8321 The local function 'IfStatement' is declared but never used ConsoleApp2 C:\Users\admin\source\repos\ConsoleApp2\ConsoleApp2\Program.cs 9 Active


Amit GuptaRank #190 · 12.8K reputationPosted May 1, 2018, 10:04 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted May 1, 2018, 10:40 PM EDT
Daniel Hunt14 reputationPosted May 1, 2018, 10:09 PM EDT
Daniel Hunt14 reputationPosted May 1, 2018, 10:25 PM EDT
Daniel Hunt14 reputationPosted May 1, 2018, 10:50 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted May 1, 2018, 11:21 PM EDT
Dileep Kumar58 reputationPosted May 1, 2018, 11:39 PM EDT
Daniel Hunt14 reputationPosted May 1, 2018, 11:52 PM EDT