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