ScopeTest2.cs does not compile
I tried it with both the command line compiler and visual studio.
It gets hung up on the ConsoleWrite(j); under the class ScopeTest2.
The error is as follows
CS1519: Invalid token '(' in class, struct, or interface member declaration
CS1519: Invalid token ')' in class, struct, or interface member declaration
I delete the ConsoleWrite(j); statement and it compiles fine.
I also tried replacing ConsoleWrite(j); with j = j + 1; and it didn't like that either.
I'm thinking that this section of code is for defining and initializing variables and not for operations.
Today is my first day with C# so I'm looking for help.