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
阅读(720)
推荐(0) 编辑
Effective C# Chapter 1 小结
摘要:Effective C# Chapter 1 小结
阅读全文
posted @
2006-09-27 08:57
aiya
阅读(681)
推荐(0) 编辑
Effective C# Item 11: Prefer foreach Loops
摘要:Effective C# Item 11: Prefer foreach Loops
推荐使用foreach循环
阅读全文
posted @
2006-09-25 08:50
aiya
阅读(1116)
推荐(0) 编辑
精确计算代码执行时间
摘要:使用QueryPerformanceFrequency函数和QueryPerformanceCounter函数获得更为精确的代码执行时间
阅读全文
posted @
2006-09-23 11:23
aiya
阅读(2689)
推荐(1) 编辑
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
阅读(1100)
推荐(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
阅读(1202)
推荐(1) 编辑
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
阅读(1238)
推荐(1) 编辑
FlagsAttribute属性在enum中的应用
摘要:FlagsAttribute属性在enum中的应用及与普通枚举的对比
阅读全文
posted @
2006-09-16 12:10
aiya
阅读(2950)
推荐(3) 编辑
Effective C# Item7: Prefer Immutable Atomic Value Types
摘要:Effective C# Item7: Prefer Immutable Atomic Value Types
推荐使用不可变原子值类型
阅读全文
posted @
2006-09-14 10:52
aiya
阅读(981)
推荐(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
阅读(825)
推荐(1) 编辑
设计模式学习笔记之 Abstract Factory
摘要:设计模式学习笔记之 Abstract Factory
阅读全文
posted @
2006-09-10 16:19
aiya
阅读(224)
推荐(0) 编辑
SQL分组排序问题
摘要:3个字段ABC要挑出以A分组C第n大的行 开始是想先取TOP n - 1,然后取不在这TOP n – 1 中的TOP1就是第N个了,比较麻烦。 后来有猛人解答: select * from t t1 where (select count(*) from t where t1.A = t.A and t1.c<=t.c) = n 就可以取到以A分组每组的第n大(t为表...
阅读全文
posted @
2006-09-09 13:43
aiya
阅读(1632)
推荐(0) 编辑
关于.Net WinForm 中的控件失去焦点时触发事件的问题
摘要:WinForm跟踪代码时发现当焦点离开控件时触发事件的顺序同MSDN中提到的并不完全相同,分为两种情况
另外还有对Validating和Validated事件的触发条件和时机的一些使用结果
阅读全文
posted @
2006-09-09 13:24
aiya
阅读(6538)
推荐(0) 编辑
Effective C# Item 5: Always Provide ToString()
摘要:Effective C# Item 5: Always Provide ToString()
为类型提供ToString()方法
阅读全文
posted @
2006-09-09 12:18
aiya
阅读(988)
推荐(0) 编辑
IExtenderProvider接口的应用
摘要:IExtenderProvider接口在WinForm中应用的体会和一个小例子
阅读全文
posted @
2006-09-08 10:03
aiya
阅读(681)
推荐(0) 编辑
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
阅读(1379)
推荐(0) 编辑
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
阅读(924)
推荐(0) 编辑
Effective C# Item 2: Prefer readonly to const
摘要:Effective C# Item2: Prefer readonly to const
概要翻译 + 读书笔记 欢迎拍砖 谢谢
阅读全文
posted @
2006-09-01 08:39
aiya
阅读(1005)
推荐(0) 编辑