• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
A Developer's Expedition
敏而好学、孜孜不倦、TOP10
博客园 首页 新随笔 订阅 订阅 管理

2010年4月25日

浅尝EffectiveCSharp_3
摘要: Item 5: 始终提供ToString()方法。Always Provide ToString()略.中心思想:ToString()几个重写版本,以及一些格式化输出。Item 6: Understand the Relationships Among the ManyDifferent Concepts of EqualityItem 6: 了解Equality的不同概念之间的关系。Unders... 阅读全文
posted @ 2010-04-25 20:44 Livermore.S 阅读(303) 评论(0) 推荐(0)
 
浅尝EffectiveCSharp_2
摘要: Item 3: 使用is或as操作符,避免强制转型Prefer the is or as Operators to CastsThe correct choice is to use the as operator whenever you can because itis safer than blindly casting and is more efficient at runtime. T... 阅读全文
posted @ 2010-04-25 12:55 Livermore.S 阅读(310) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3