用户操作
[即时聊天] [发私信] [加为好友]
FrankQinID:FrankWin
59265次访问,排名1950,好友0人,关注者0人。
FrankWin的文章
原创 73 篇
翻译 0 篇
转载 56 篇
评论 24 篇
最近评论
文章分类
收藏
    相册
    自然景观
    程序开发
    .NET Cryptography and Hashing Algorithms
    Blog - CZoneSoft
    Exception Handling Best Practices in .NET
    isql.exe and osql.exe
    Linux文件权限的设置技巧
    Linux系统中网络配置详解
    Using .NET Cryptographic Hash Classes
    不利于职业前程的十种想法
    优化指南:运行Windows 2000只需32MB内存
    使用PowerDesigner进行代码生成
    使用自定义验证组件库扩展 Windows 窗体
    如何收到操作系统注销或者重启的消息?
    学编程的人不能不看的好文章
    数据库的查询优化技术
    电脑书籍下载网站
    人生百态
    [转帖]一篇感人的文章 -- 做人子女者必看!!
    《广东省工资支付条例》实施 法定节假日4倍工资
    不要睡觉太晚,看看身体器官的工作时间
    专家揭示连锁加盟陷阱
    世上最壮观的七大闪电
    中国房地产十八个谎言:房价一直涨 买房要趁早
    九则发人省思的小故事
    二十世纪世界上最疯狂的行为
    人在职场,必须由自己决定的八件大事
    令人潸然泪下的26张照片
    侯宁-搜狐博客
    八大必带女友看的恐怖片
    北京海天的专栏
    古今中西激励方法大比拼
    向松祚博士的博客
    在人生的道路上必须明白的7个真理
    广东节假日工资确认拿四倍
    徐小平:不做人生规划,你离挨饿只有三天
    感受共和国军人
    易宪容-搜狐博客
    水皮-搜狐博客
    水皮杂谈
    沟通中,怎样成为说话高手
    法定节假日的加班工资到底是三倍还是四倍?
    网易_圈子_国际关系
    网易高端阅读:大视野下的中国经济
    职业生涯自我规划五步法
    莉娜·朱丽与布拉德·皮特生活照曝光
    谁能逗笑1860话务小姐
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 public, public readonly, public static, public const收藏

    新一篇: 狼的十大哲学 | 旧一篇: .Net: handle exceptions while loading dataset from xml file

    public class ClassA

    {

    public string variableA;

    public readonly string variableB = "variabl B";

    public string variableB1{ get { return "variabe B1"; } }

    public static string variableC;

    public const string variableD;

    }

    how should use these variables?

    for variables with public static or public const, must reference the class, e.g: ClassA.variableC, ClassA.variableD.

    for variables with public but without staitc and const, must reference with a new instance, e.g:

    ClassA myClassA = new ClassA(); // create an instance

    myClassA.variableA = "variable A"; string variableA = myClassA.variableA; // both get and set( i.e. read and write)

    string variableB = myClassA.variableB; string variableB1 = myClassA.variableB1; // only get (i.e. read only)

    发表于 @ 2005年07月08日 10:16:00|评论(loading...)|编辑

    新一篇: 狼的十大哲学 | 旧一篇: .Net: handle exceptions while loading dataset from xml file

    评论:没有评论。

    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © FrankQin