More Effective C#: 50 Specific Ways to Improve Your C#

Bill Wagner

  • 出版商: Addison Wesley
  • 出版日期: 2008-10-17
  • 定價: $1,650
  • 售價: 6.0$990
  • 語言: 英文
  • 頁數: 336
  • 裝訂: Paperback
  • ISBN: 0321485890
  • ISBN-13: 9780321485892
  • 相關分類: C#
  • 立即出貨(限量) (庫存=1)



“Shining a bright light into many of the dark corners of C# 3.0, this book not only covers the ‘how,’ but also the ‘why,’ arming the reader with many field-tested methods for wringing the most from the new language features, such as LINQ, generics, and multithreading. If you are serious about developing with the C# language, you need this book.”

–Bill Craun, Principal Consultant, Ambassador Solutions, Inc.


More Effective C# is an opportunity to work beside Bill Wagner. Bill leverages his knowledge of C# and distills his expertise down to some very real advice about programming and designing applications that every serious Visual C# user should know. More Effective C# is one of those rare books that doesn’t just regurgitate syntax, but teaches you how to use the C# language.”

–Peter Ritchie, Microsoft MVP: Visual C#


More Effective C# is a great follow-up to Bill Wagner’s previous book. The extensive

C# 3.0 and LINQ coverage is extremely timely!”

–Tomas Restrepo, Microsoft MVP: Visual C++, .NET, and Biztalk Server


“As one of the current designers of C#, it is rare that I learn something new about the language by reading a book. More Effective C# is a notable exception. Gently blending concrete code and deep insights, Bill Wagner frequently makes me look at C# in a fresh light–one that really makes it shine. More Effective C# is at the surface a collection of very useful guidelines. Look again. As you read through it, you’ll find that you acquire more than just the individual pieces of advice; gradually you’ll pick up on an approach to programming in C# that is thoughtful, beautiful, and deeply pleasant. While you can make your way willy-nilly through the individual guidelines, I do recommend reading the whole book–or at least not skipping over the chapter introductions before you dive into specific nuggets of advice. There’s perspective and insight to be found there that in itself can be an important guide and inspiration for your future adventures in C#.”

–Mads Torgersen, Program Manager, Visual C#, Microsoft


“Bill Wagner has written an excellent book outlining the best practices for developers who work with the C# language. By authoring More Effective C#, he has again established himself as one of the most important voices in the C# community. Many of us already know how to use C#. What we need is advice on how to hone our skills so that we can become wiser programmers. There is no more sophisticated source of information on how to become a first-class C# developer than Bill Wagner’s book. Bill is intelligent, thoughtful, experienced, and skillful. By applying the lessons from this book to your own code, you will find many ways to polish and improve the work that you produce.”

–Charlie Calvert, Community Program Manager, Visual C#, Microsoft


In More Effective C#, Microsoft C# MVP and Regional Director Bill Wagner introduces fifty brand-new ways to write more efficient and more robust software. This all-new book follows the same format as Wagner’s best-selling Effective C# (Addison-Wesley, 2005), providing clear, practical explanations, expert tips, and plenty of realistic code examples.


Wagner shows how to make the most of powerful innovations built into Microsoft’s new C# 3.0 and .NET Framework 3.5, as well as advanced C# language capabilities not covered in his previous book. Drawing on his unsurpassed C# experience, the author reveals new best practices for working with LINQ, generics, metaprogramming, and many other features. He also uncovers practices that compromise performance or reliability and shows exactly how to avoid them.


More Effective C# shows how to

  • Use generics to express your design intent more effectively
  • Master advanced generics techniques, such as constraints, method constraints, and generic specialization
  • Use the multithreaded techniques you’ll need to work with the .NET framework every day
  • Express modern design idioms using the rich palette of C# language features
  • Successfully mix object oriented and functional programming constructs
  • Create composable interfaces and avoid confusion in public interfaces
  • Use extension methods to separate contracts from implementation
  • Program successfully with C# closures and anonymous types
  • Write more effective LINQ queries
  • Make the most of LINQ Lazy Evaluation Queries and Lambda Expressions
  • Distinguish and convert between delegates and expression trees
  • Efficiently utilize nullable types and partial classes
  • Use implicit properties for mutable, nonserializable data

You’re already a successful C# programmer–this book can help you become an outstanding one.


「在C# 3.0的許多黑暗角落中照亮一道明亮的光芒,這本書不僅涵蓋了「如何」,還涵蓋了「為什麼」,為讀者提供了許多經過現場測試的方法,以充分利用新的語言功能,如LINQ、泛型和多線程。如果您真的想要使用C#語言進行開發,您需要這本書。」
– Bill Craun,主要顧問,Ambassador Solutions, Inc.

「《更有效的C#》是一個與Bill Wagner並肩工作的機會。Bill利用他對C#的知識,將他的專業知識提煉成一些建議,關於每個嚴肅的Visual C#使用者應該知道的程式設計和應用設計。《更有效的C#》是那種不僅僅重複語法的稀有書籍,而是教你如何使用C#語言。」
– Peter Ritchie,Microsoft MVP: Visual C#

「《更有效的C#》是Bill Wagner之前一本書的很好的續集。對C# 3.0和LINQ的廣泛涵蓋非常及時!」
– Tomas Restrepo,Microsoft MVP: Visual C++,.NET和Biztalk Server

「作為C#的現任設計師之一,通過閱讀一本書來學到關於語言的新知識是很少見的。《更有效的C#》是一個值得注意的例外。Bill Wagner巧妙地結合具體的代碼和深入的見解,經常讓我以全新的視角看待C#,使其真正閃耀。《更有效的C#》表面上是一本非常有用的指南集合。再看一遍。當你閱讀它時,你會發現你不僅獲得了個別的建議,還逐漸掌握了一種思考、美麗和愉悅的C#編程方法。雖然你可以隨意閱讀個別的指南,但我建議閱讀整本書,或者至少在深入具體建議之前不要跳過章節介紹。那裡有透視和洞察力,本身可以成為你未來在C#中重要的指南和靈感。」
– Mads Torgersen,程式經理,Visual C#,Microsoft

「Bill Wagner寫了一本優秀的書,概述了與C#語言一起工作的開發人員的最佳實踐。通過撰寫《更有效的C#》,他再次確立了自己作為C#社區中最重要的聲音之一。我們中的許多人已經知道如何使用C#。我們需要的是如何磨練我們的技能,以便成為更明智的程式設計師的建議。沒有比Bill Wagner的書更高級的C#開發人員信息來源了。Bill聰明、周到、經驗豐富、技術嫻熟。通過將這本書的教訓應用於您自己的代碼,您將找到許多方法來改進和提升您的工作。」
– Charlie Calvert,社區計劃經理,Visual C#,Microsoft

在《更有效的C#》中,微軟C# MVP和區域總監Bill Wagner介紹了50種全新的方法,以編寫更高效、更強大的軟體。這本全新的書籍遵循Wagner暢銷書《Effective C#》(Addison-Wesley,2005)的相同格式,提供清晰、實用的解釋、專家建議和大量實際的代碼示例。

Wagner展示了如何充分利用內建於微軟新的C# 3.0和.NET Framework 3.5中的強大創新,以及他之前的書中未涵蓋的高級C#語言功能。借助他無與倫比的C#經驗,作者提供了實用的指導,幫助讀者提升他們的C#編程技能。