[Solved] Why i can not use reference variable?
You are trying to write execution code inside of a class. Please close it in a method, or any other execution code block and it will be ok. Following this article: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/class A class can contain declarations of the following members: Constructors Constants Fields Finalizers Methods Properties Indexers Operators Events Delegates Classes Interfaces Structs I … Read more