随笔分类 - .NET相关
一切和.NET相关的知识。
摘要:Item 26: Implement Ordering Relations with IComparable and IComparer
阅读全文
摘要:Item 25: Prefer Serializable Types
阅读全文
摘要:Item 24: Prefer Declarative to Imperative Programming
阅读全文
摘要:Item 23: Avoid Returning References to Internal Class Objects
阅读全文
摘要:Item 22: Define Outgoing Interfaces with Events
阅读全文
摘要:Item 21: Express Callbacks with Delegates
阅读全文
摘要:Item 20: Distinguish Between Implementing Interfaces and Overriding Virtual Functions
阅读全文
摘要:Item 19: Prefer Defining and Implementing Interfaces to Inheritance
阅读全文
摘要:Item 18: Implement the Standard Dispose Pattern
阅读全文
摘要:Item 17: Minimize Boxing and Unboxing
阅读全文
摘要:Item 16: Minimize Garbage
阅读全文
摘要:Item 15: Utilize using and TRy/finally for Resource Cleanup
阅读全文
摘要:Item 14: Utilize Constructor Chaining
阅读全文
摘要:Item 13: Initialize Static Class Members with Static Constructors
阅读全文
摘要:Item 12: Prefer Variable Initializers to Assignment Statements
阅读全文
摘要:Item 11: Prefer foreach Loops
阅读全文
摘要:Item 10: Understand the Pitfalls of GetHashCode()
阅读全文
摘要:Item 9: Understand the Relationships Among ReferenceEquals(), static Equals(), instance Equals(), and operator==
阅读全文
摘要:Item 8: Ensure That 0 Is a Valid State for Value Types
阅读全文
摘要:Item 7: Prefer Immutable Atomic Value Types
阅读全文