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 GuptaPosted May 2, 2018, 2:04 AM
Daniel HuntPosted May 2, 2018, 3:52 AM
Dileep KumarPosted May 2, 2018, 3:39 AM
Amit GuptaPosted May 2, 2018, 3:21 AM
Daniel HuntPosted May 2, 2018, 2:50 AM
Amit GuptaPosted May 2, 2018, 2:40 AM
Daniel HuntPosted May 2, 2018, 2:25 AM
Daniel HuntPosted May 2, 2018, 2:09 AM