ConsoleApp_staticProperty

namespace ConsoleApp_staticProperty
{
class Program
{
static void Main(string[] args)
{
Test.Name="Jim";
Console.WriteLine(Test.Name);
}
}

static class Test
{
static String _name;
public static String Name
{
get
{
return _name;
}
set
{
_name = value;
}
}


}

}

posted @ 2017-11-01 13:52  sky20080101  阅读(54)  评论(0)    收藏  举报