泛型的静态成员

------------------------------------StaticDome.cs

让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:主机域名网站空间、营销软件、网站建设、洛江网站维护、网站推广。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
    public class StaticDome
    {
        public static int x;
    }
}

------------------------------------主程序

StaticDome.x = 4;
StaticDome.x = 5;
Console.WriteLine(StaticDome.x);//输出4
Console.WriteLine(StaticDome.x);//输出5
Console.ReadKey();

当前名称:泛型的静态成员
分享地址:http://csdahua.cn/article/jsgpjs.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流