I want to specify a global variable and read/write that variable in various contexts, do you guys know how I do this? because I want to read from various context I want to be able set this global var within the public static void Main(string[] args) and then read this, for example, from test2() below.
For example:
namespace Gathering_Tool
{
public class Program
{
public string targetserver;
public static void Main(string[] args)
{
this.targetserver = "whatever";
}
public void Test2()
{
Console.writline(this.targetserver);
}
}
}