.NET Fiddle

CSharp · Console

/Program.cs

class Test 
{
	private static Test _instance;
	public static Test Instance
	{
		get { return _instance; }
	}
	
	public int Value;
}
					
public class Program
{	
	public static void Main()
	{
		Test t = Test.Instance;
		t.Value++;
	}
}
;