Effective C# (Covers C# 4.0): 50 Specific Ways to Improve Your C#, 2/e (Paperback)
暫譯: 有效的 C#(涵蓋 C# 4.0):50 種具體方法提升你的 C#,第 2 版(平裝本)
Bill Wagner
- 出版商: Addison Wesley
- 出版日期: 2010-03-12
- 售價: $2,030
- 貴賓價: 9.5 折 $1,929
- 語言: 英文
- 頁數: 352
- 裝訂: Paperback
- ISBN: 0321658701
- ISBN-13: 9780321658708
-
相關分類:
C#
已絕版
買這商品的人也買了...
-
$580$464 -
$880$695 -
$450$383 -
$450$383 -
$990$891 -
$620$490 -
$520$343 -
$680$537 -
$520$411 -
$820$648 -
$580$458 -
$530$419 -
$890$703 -
$490$387 -
$950$741 -
$450$351 -
$490$387 -
$480$408 -
$850$672 -
$990Criminalistics: An Introduction to Forensic Science, 9/e (paperback)
-
$850$672 -
$550$435 -
$490$417 -
$690$538 -
$160$160
相關主題
商品描述
Description
C# has matured over the past decade: It’s now a rich language with generics, functional programming concepts, and support for both static and dynamic typing. This palette of techniques provides great tools for many different idioms, but there are also many ways to make mistakes. In Effective C#, Second Edition, respected .NET expert Bill Wagner identifies fifty ways you can leverage the full power of the C# 4.0 language to express your designs concisely and clearly.
Effective C#, Second Edition, follows a clear format that makes it indispensable to hundreds of thousands of developers: clear, practical explanations, expert tips, and plenty of realistic code examples. Drawing on his unsurpassed C# experience, Wagner addresses everything from types to resource management to dynamic typing to multicore support in the C# language and the .NET framework. Along the way, he shows how to avoid common pitfalls in the C# language and the .NET environment. You’ll learn how to
- Use both types of C# constants for efficiency and maintainability (see Item 2)
- Employ immutable data types to promote multicore processing (see Item 20)
- Minimize garbage collection, boxing, and unboxing (see Items 16 and 45)
- Take full advantage of interfaces and delegates (see Items 22 though 25)
- Make the most of the parallel framework (see Items 35 through 37)
- Use duck typing in C# (see Item 38)
- Spot the advantages of the dynamic and Expression types over reflection (see Items 42 and 43)
- Assess why query expressions are better than loops (see Item 8)
- Understand how generic covariance and contravariance affect your designs (see Item 29)
- See how optional parameters can minimize the number of method overloads (see Item 10)
You’re already a successful C# programmer–this book will help you become an outstanding one.
商品描述(中文翻譯)
描述
C# 在過去十年中已經成熟:現在它是一種豐富的語言,具備泛型、函數式編程概念,並支持靜態和動態類型。這些技術的組合為許多不同的語言風格提供了優秀的工具,但也有許多可能出錯的地方。在《Effective C#, Second Edition》中,受人尊敬的 .NET 專家 Bill Wagner 確定了五十種方法,讓你能夠充分利用 C# 4.0 語言的強大功能,以簡潔明瞭的方式表達你的設計。
《Effective C#, Second Edition》遵循清晰的格式,使其對數十萬名開發者來說不可或缺:清晰、實用的解釋、專家的建議,以及大量現實的代碼範例。Wagner 憑藉其無與倫比的 C# 經驗,涵蓋了從類型到資源管理、動態類型到多核心支持等 C# 語言和 .NET 框架的各個方面。在此過程中,他展示了如何避免 C# 語言和 .NET 環境中的常見陷阱。你將學會如何:
- 使用兩種類型的 C# 常數以提高效率和可維護性(見項目 2)
- 使用不可變數據類型以促進多核心處理(見項目 20)
- 最小化垃圾回收、裝箱和拆箱(見項目 16 和 45)
- 充分利用介面和委派(見項目 22 至 25)
- 最大化並行框架的優勢(見項目 35 至 37)
- 在 C# 中使用鴨子類型(見項目 38)
- 辨識動態類型和表達式類型相對於反射的優勢(見項目 42 和 43)
- 評估為何查詢表達式優於迴圈(見項目 8)
- 理解泛型協變和逆變如何影響你的設計(見項目 29)
- 了解可選參數如何最小化方法重載的數量(見項目 10)
你已經是一位成功的 C# 程式設計師——這本書將幫助你成為一位傑出的程式設計師。