using System;
namespace ConsoleApplication_C_Sharp
{
public static class Test
{
static int sp;
public static int StaticProperty
{
get { return sp; }
set { sp = value; }
}
}
class Program
{
static void Main(string[] args)
{
int n = Test.StaticProperty;
Console.WriteLine(n);
Test.StaticProperty = 100;
Console.WriteLine(Test.StaticProperty);
}
}
}
/*
run:
0
100
*/