随笔 - 43  文章 - 3 评论 - 75 trackbacks - 4

09 2006 档案
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 阅读(486) | 评论 (0) 编辑
Effective C# Chapter 1 小结
摘要: Effective C# Chapter 1 小结阅读全文
posted @ 2006-09-27 08:57 aiya 阅读(441) | 评论 (0) 编辑
Effective C# Item 11: Prefer foreach Loops
摘要: Effective C# Item 11: Prefer foreach Loops
推荐使用foreach循环阅读全文
posted @ 2006-09-25 08:50 aiya 阅读(730) | 评论 (4) 编辑
精确计算代码执行时间
摘要: 使用QueryPerformanceFrequency函数和QueryPerformanceCounter函数获得更为精确的代码执行时间阅读全文
posted @ 2006-09-23 11:23 aiya 阅读(1678) | 评论 (3) 编辑
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 阅读(647) | 评论 (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 阅读(794) | 评论 (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 阅读(586) | 评论 (5) 编辑
FlagsAttribute属性在enum中的应用
摘要: FlagsAttribute属性在enum中的应用及与普通枚举的对比阅读全文
posted @ 2006-09-16 12:10 aiya 阅读(1608) | 评论 (1) 编辑
Effective C# Item7: Prefer Immutable Atomic Value Types
摘要: Effective C# Item7: Prefer Immutable Atomic Value Types
推荐使用不可变原子值类型阅读全文
posted @ 2006-09-14 10:52 aiya 阅读(593) | 评论 (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 阅读(546) | 评论 (0) 编辑
设计模式学习笔记之 Composite
摘要: 设计模式学习笔记之 Composite阅读全文
posted @ 2006-09-10 17:21 aiya 阅读(99) | 评论 (0) 编辑
设计模式学习笔记之 Bridge
摘要: 设计模式学习笔记之 Bridge 阅读全文
posted @ 2006-09-10 17:10 aiya 阅读(77) | 评论 (0) 编辑
设计模式学习笔记之 Adapter
摘要: 设计模式学习笔记之 Adapter 阅读全文
posted @ 2006-09-10 16:55 aiya 阅读(65) | 评论 (0) 编辑
设计模式学习笔记之 Prototype
摘要: 设计模式学习笔记之 Prototype 阅读全文
posted @ 2006-09-10 16:47 aiya 阅读(107) | 评论 (0) 编辑
设计模式学习笔记之 Factory
摘要: 设计模式学习笔记之 Factory 阅读全文
posted @ 2006-09-10 16:39 aiya 阅读(92) | 评论 (0) 编辑
设计模式学习笔记之 Builder
摘要: 设计模式学习笔记之 Builder 阅读全文
posted @ 2006-09-10 16:30 aiya 阅读(89) | 评论 (0) 编辑
设计模式学习笔记之 Abstract Factory
摘要: 设计模式学习笔记之 Abstract Factory 阅读全文
posted @ 2006-09-10 16:19 aiya 阅读(83) | 评论 (0) 编辑
设计模式学习笔记之 Singleton
摘要: 设计模式学习笔记之 Singleton阅读全文
posted @ 2006-09-10 16:11 aiya 阅读(117) | 评论 (0) 编辑
设计模式学习笔记
摘要: 设计模式学习笔记前言 + 目录阅读全文
posted @ 2006-09-10 15:57 aiya 阅读(111) | 评论 (0) 编辑
关于.Net WinForm 中的控件失去焦点时触发事件的问题
摘要: WinForm跟踪代码时发现当焦点离开控件时触发事件的顺序同MSDN中提到的并不完全相同,分为两种情况
另外还有对Validating和Validated事件的触发条件和时机的一些使用结果阅读全文
posted @ 2006-09-09 13:24 aiya 阅读(2261) | 评论 (2) 编辑
Effective C# Item 5: Always Provide ToString()
摘要: Effective C# Item 5: Always Provide ToString()
为类型提供ToString()方法阅读全文
posted @ 2006-09-09 12:18 aiya 阅读(669) | 评论 (2) 编辑
IExtenderProvider接口的应用
摘要: IExtenderProvider接口在WinForm中应用的体会和一个小例子阅读全文
posted @ 2006-09-08 10:03 aiya 阅读(357) | 评论 (1) 编辑
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 阅读(713) | 评论 (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 阅读(573) | 评论 (5) 编辑
Effective C# Item 2: Prefer readonly to const
摘要: Effective C# Item2: Prefer readonly to const
概要翻译 + 读书笔记 欢迎拍砖 谢谢 阅读全文
posted @ 2006-09-01 08:39 aiya 阅读(601) | 评论 (1) 编辑