Effective C# Item 35: Prefer Overrides to Event Handlers
摘要: Effective C# Item 35: Prefer Overrides to Event Handlers
在处理派生类事件时推荐重写而不是使用事件句柄
阅读全文
posted @
2007-06-16 19:25 aiya 阅读(1057) |
评论 (1) 编辑
Effective C# Item 40: Match Your Collection to Your Needs
摘要: Effective C# Item 40: Match Your Collection to Your Needs
根据需要选用恰当的集合
阅读全文
posted @
2007-06-08 14:22 aiya 阅读(1229) |
评论 (0) 编辑
Effective C# Item 31: Prefer Small, Simple Functions
摘要: Effective C# Item 31: Prefer Small, Simple Functions
推荐使用小且简单的函数
阅读全文
posted @
2007-05-27 21:03 aiya 阅读(1032) |
评论 (4) 编辑
Effective C# Item 30: Prefer CLS-Compliant Assemblies
摘要: Effective C# Item 30: Prefer CLS-Compliant Assemblies
让程序集符合CLS(公共语言规范)
阅读全文
posted @
2007-05-21 14:49 aiya 阅读(1034) |
评论 (0) 编辑
Chapter 4 Create Binary Components
摘要: Chapter 4 Create Binary Components
创建二进制组件
阅读全文
posted @
2007-04-25 19:35 aiya 阅读(526) |
评论 (1) 编辑
Effective C# Item 29: Use the new Modifier Only When Base Class Updates Mandate it
摘要: Effective C# Item29: Use the new Modifier Only When Base Class Updates Mandate it
只在更新基类的情况下使用new修饰符
阅读全文
posted @
2007-04-22 11:40 aiya 阅读(545) |
评论 (0) 编辑
Effective C# Item 28: Avoid Conversion Operators
摘要: Effective C# Item 28: Avoid Conversion Operators
尽量避免转换操作
阅读全文
posted @
2007-04-14 14:57 aiya 阅读(699) |
评论 (2) 编辑
Effective C# Item 27: Avoid ICloneable
摘要: Effective C# Item 27: Avoid ICloneable
避免使用ICloneable接口
阅读全文
posted @
2007-04-07 16:10 aiya 阅读(584) |
评论 (1) 编辑
Effective C# Item 26: Implement Ordering Relations with IComparable and IComparer
摘要: Effective C# Item 26: Implement Ordering Relations with IComparable and IComparer
通过IComparable和IComparer接口来实现排序关系
阅读全文
posted @
2007-03-26 11:17 aiya 阅读(547) |
评论 (1) 编辑
Effective C# Item 25: Prefer Serializable Type
摘要: Effective C# Item 25: Prefer Serializable Type
推荐支持序列化
阅读全文
posted @
2007-03-19 12:04 aiya 阅读(752) |
评论 (3) 编辑
Effective C# Item 24: Prefer Declarative to Imperative Programming
摘要: Effective C# Item 24: Prefer Declarative to Imperative Programming
推荐使用声明式编程
阅读全文
posted @
2007-03-05 10:56 aiya 阅读(496) |
评论 (1) 编辑
Effective C# Item 23: Avoid Returning References to Internal Class Objects
摘要: Effective C# Item23 : Avoid Returning References to Internal Class Objects
避免返回内部成员的引用
阅读全文
posted @
2007-01-29 09:56 aiya 阅读(603) |
评论 (0) 编辑
Effective C# Item 22: Define Outgoing Interface With Events
摘要: Effective C# Item 22:Define Outgoing Interface With Events
使用事件定义传出接口
阅读全文
posted @
2006-12-22 09:09 aiya 阅读(604) |
评论 (0) 编辑
Effective C# Item 20: Distinguish Between Implementing Interfaces and Overriding Virtual Functions
摘要: Effective C# Item 20: Distinguish Between Implementing Interfaces and Overriding Virtual Functions
概要翻译 + 读书笔记 欢迎拍砖 谢谢
阅读全文
posted @
2006-11-13 08:52 aiya 阅读(919) |
评论 (0) 编辑
Effective C# Item19: Prefer Defining and Implementing Interfaces to Inheritance
摘要: Effective C# Item19: Prefer Defining and Implementing Interfaces to Inheritance
概要翻译 + 读书笔记 欢迎拍砖 谢谢
阅读全文
posted @
2006-10-31 08:52 aiya 阅读(1572) |
评论 (0) 编辑
Effective C# Item18: Implement the Standard Dispose Pattern
摘要: Effective C# Item18: Implement the Standard Dispose Pattern
实现标准Dispose模式
阅读全文
posted @
2006-10-27 10:48 aiya 阅读(1417) |
评论 (0) 编辑
Effective C# Item17: Minimize Boxing and Unboxing
摘要: Effective C# Item17: Minimize Boxing and Unboxing
减少装箱和拆箱操作
阅读全文
posted @
2006-10-24 09:10 aiya 阅读(1222) |
评论 (0) 编辑
Effective C# Item 16: Minimize Garbage
摘要: Effective C# Item 16: Minimize Garbage
概要翻译 + 读书笔记 欢迎拍砖 谢谢
阅读全文
posted @
2006-10-20 09:19 aiya 阅读(742) |
评论 (0) 编辑
Effective C# Item 15: Utilize using and try/finally for Resource Cleanup
摘要: Effective C# Item 15: Utilize using and try/finally for Resource Cleanup
使用using和try/finally释放资源 还有对于Dispose(),Close(),析构函数和Finalize()的一个问题
阅读全文
posted @
2006-10-16 09:10 aiya 阅读(753) |
评论 (0) 编辑
Effective C# Item14: Utilize Constructor Chaining
摘要: Effective C# Item14: Utilize Constructor Chaining
使用构造函数链
阅读全文
posted @
2006-10-13 09:08 aiya 阅读(494) |
评论 (0) 编辑
Effective C# Item13: Initialize Static Class Members with Static Constructiors
摘要: Effective C# Item13: Initialize Static Class Members with Static Constructiors
概要翻译 + 读书笔记 欢迎拍砖 谢谢
阅读全文
posted @
2006-10-11 12:48 aiya 阅读(506) |
评论 (0) 编辑
Effective C# Item12: Prefer Variable Initializers to Assignment Statements
摘要: Effective C# Item12: Prefer Variable Initializers to Assignment Statements
概要翻译 + 读书笔记 欢迎拍砖 谢谢
阅读全文
posted @
2006-09-30 15:20 aiya 阅读(474) |
评论 (0) 编辑
Effective C# Chapter 1 小结
摘要: Effective C# Chapter 1 小结
阅读全文
posted @
2006-09-27 08:57 aiya 阅读(431) |
评论 (0) 编辑
Effective C# Item 11: Prefer foreach Loops
摘要: Effective C# Item 11: Prefer foreach Loops
推荐使用foreach循环
阅读全文
posted @
2006-09-25 08:50 aiya 阅读(711) |
评论 (4) 编辑
Effective C# Item 10: Understand the Pitfalls of GetHashCode()
摘要: Effective C# Item 10: Understand the Pitfalls of GetHashCode()
概要翻译 + 读书笔记 欢迎拍砖 谢谢
阅读全文
posted @
2006-09-21 10:51 aiya 阅读(631) |
评论 (0) 编辑
Effective C# Item 9: Understand the Relationships Among ReferenceEquals(),static Equals(),instance Equals,and operator==
摘要: Effective C# Item 9: Understand the Relationships Among ReferenceEquals(),static Equals(),instance Equals,and operator==
区分ReferenceEquals(),static Equals(),instance Equals和运算符==
阅读全文
posted @
2006-09-20 08:45 aiya 阅读(777) |
评论 (3) 编辑
Effective C# Item 8: Ensure That 0 Is a Valid State for Value Types
摘要: Effective C# Item 8: Ensure That 0 Is a Valid State for Value Types
确保0在值类型中有效
阅读全文
posted @
2006-09-16 12:12 aiya 阅读(572) |
评论 (5) 编辑
Effective C# Item7: Prefer Immutable Atomic Value Types
摘要: Effective C# Item7: Prefer Immutable Atomic Value Types
推荐使用不可变原子值类型
阅读全文
posted @
2006-09-14 10:52 aiya 阅读(567) |
评论 (1) 编辑
Effective C# Item 6: Distinguish Between Value Types and Reference Types
摘要: Effective C# Item 6: Distinguish Between Value Types and Reference Types
区分值类型和引用类型
阅读全文
posted @
2006-09-11 08:39 aiya 阅读(527) |
评论 (0) 编辑
Effective C# Item 5: Always Provide ToString()
摘要: Effective C# Item 5: Always Provide ToString()
为类型提供ToString()方法
阅读全文
posted @
2006-09-09 12:18 aiya 阅读(658) |
评论 (2) 编辑
Effective C# Item 4: Use Conditional Attributes Instead of #if
摘要: Effective C# Item4: Use Conditional Attributes Instead of #if
使用条件控制属性来代替#if
阅读全文
posted @
2006-09-07 10:59 aiya 阅读(697) |
评论 (8) 编辑
Effective C# Item 3: Prefer the is or as Operators to Casts
摘要: Effective C# Item3: Prefer the is or as Operators to Casts
推荐使用is和as来代替强制类型转换
阅读全文
posted @
2006-09-02 09:49 aiya 阅读(554) |
评论 (5) 编辑
Effective C# Item 2: Prefer readonly to const
摘要: Effective C# Item2: Prefer readonly to const
概要翻译 + 读书笔记 欢迎拍砖 谢谢
阅读全文
posted @
2006-09-01 08:39 aiya 阅读(588) |
评论 (1) 编辑
Effective C# Item 1: Always Use Properties Instead of Accessible Data Members
摘要: Effective C# Item1: Always Use Properties Instead of Accessible Data Members
使用属性来代替暴露公有数据成员
阅读全文
posted @
2006-08-29 22:18 aiya 阅读(1145) |
评论 (1) 编辑