原文:
You’ll notice that the preceding examples don’t use variable prefixes. Most C and VB programmers are in the
habit of adding a few characters to the start of a variable name to indicate its data type. In .NET, this practice
is discouraged, because data types can be used in a much more flexible range of ways without any problem,
and most variables hold references to full objects anyway. In this book, variable prefixes aren’t used, except
for web controls, in which it helps to distinguish lists, text boxes, buttons, and other common user interface
elements. In your own programs, you should follow a consistent (typically companywide) standard that may
or may not adopt a system of variable prefixes.

解决方案 »

  1.   

    标出来的话,代码的可读性应该可以好点吧关注中……
      

  2.   

    会更糟糕……别人关心的不是你变量的类型而是他是干什么用的……
      

  3.   

    在VS中,把鼠标指针放能够在上面就可以看到变量类型了
      

  4.   

    习惯问题老是说代码是别人来读的,中国软件公司的代码真的被别人读过吗?习惯问题,但命名时一定要见名知义!
      

  5.   

    贴子回复次数大于跟给分次数
    怎么不能给分呢