圖書目錄
Introduce
Chapter 1 C# Language Elements
Item 1: Item Always Use Properties Instead of Accessible Data Members
Item 2: Item Prefer readonly to const
Item 3: Item Prefer the is or as Operators to Casts
Item 4: Item Use Conditional Attributes Instead of # if
Item 5: Item Always Provide To String()
Item 6: Item Distinguish Between Value Types and Reference Types
Item 7: Item Prefer Immutable Atomic Value Types
Item 8: Item Ensure that 0 Is a Valid State for Value Types
Item 9: Item Understand the Relationships Among Reference Equals(),static Item Equals(),instance Equals(),and operator= =
Item 10: Item Understand the pitfalls of GetHashCode()
Item 11: Item Prefer foreach Loops
Chapter 2 .NET Resource Management
Item 12: Item prefer Variable Initializers to Assignment Statements
Item 13: Item Initialize Static Class Members with Static Constructors
Item 14: Item Utilize Constructor Chaining
Item 15: Item Utilize using and try/finally for Resource Cleanup
Item 16: Item Minimize Garbage
Item 17: Item Minimize Boxing and Unboxing
Item 18: Item Implement the Standard Dispose Pattern
Chapter 3 Expressing Designs with C#
Item 19: Item Prefer Defining and Implementing Interfaces to Inheritance
Item 20: Item Distinguish Between Implementing Interface and Overriding Virtual Item Functions
Item 21: Item Express Callbacks with Delegates
Item 22: Item Defing Outgoing Interfaces with Events
Item 23: Item Avoid Item Returnign References to Internal Class Object
……
Chapter 4 Creating Binary Compsnents
Chapter 5 Working with the Framework
Chapter 6 Miscellaneous
Index
作者簡介
作者:(美)華格納
Bill Wagner is co-founder of and .NET consultant for SRT Solutions.A nationally recognized independent expert on .NET,he has been a regular contributor to ASP.NET Pro Magazine,Visual Studio Magazine,and the .NET Insight newsletter.In addition to being a Microsoft Regional Director ,he is also active in the Southeast Michigan.NET User Group and the Ann Arbor Computing Society.He is author of The C# Core Language Little Black Book.