注冊(cè) | 登錄讀書(shū)好,好讀書(shū),讀好書(shū)!
讀書(shū)網(wǎng)-DuShu.com
當(dāng)前位置: 首頁(yè)出版圖書(shū)科學(xué)技術(shù)計(jì)算機(jī)/網(wǎng)絡(luò)軟件與程序設(shè)計(jì)C/C++及其相關(guān)More Effective C#:改善C#程序的50個(gè)具體辦法(英文版)

More Effective C#:改善C#程序的50個(gè)具體辦法(英文版)

More Effective C#:改善C#程序的50個(gè)具體辦法(英文版)

定 價(jià):¥55.00

作 者: (美)瓦格納 著
出版社: 人民郵電出版社
叢編項(xiàng): 圖靈程序設(shè)計(jì)叢書(shū)
標(biāo) 簽: VC++

購(gòu)買(mǎi)這本書(shū)可以去


ISBN: 9787115215109 出版時(shí)間: 2009-11-01 包裝: 平裝
開(kāi)本: 16開(kāi) 頁(yè)數(shù): 297 字?jǐn)?shù):  

內(nèi)容簡(jiǎn)介

  《More Effective C#:改善C#程序的50個(gè)具體辦法(英文版)》針對(duì)C# 2.0和3.0中添加的新特性給出了改善C#代碼的50條實(shí)用建議,其中著重介紹了泛型技術(shù),這是C# 2.0和3.0中眾多新特性的基石?!禡ore Effective C#:改善C#程序的50個(gè)具體辦法(英文版)》按照建議的主題進(jìn)行分類(lèi),其中每個(gè)建議針對(duì)某個(gè)特定問(wèn)題進(jìn)行展開(kāi),分析了問(wèn)題的原因,給出解決的辦法?!禡ore Effective C#:改善C#程序的50個(gè)具體辦法(英文版)》適合各層次.NET開(kāi)發(fā)人員閱讀。

作者簡(jiǎn)介

  Bill Wagner是世界知名的.NET專(zhuān)家,微軟CO領(lǐng)域的MVP,并榮獲微軟Regional Director稱(chēng)號(hào)。他是著名軟件咨詢(xún)公司SRT Solutions的創(chuàng)始人,有20多年軟件開(kāi)發(fā)經(jīng)驗(yàn),曾經(jīng)領(lǐng)導(dǎo)了眾多成功的Windows平臺(tái)產(chǎn)品的開(kāi)發(fā)。他是微軟開(kāi)發(fā)社區(qū)的活躍人物,長(zhǎng)期擔(dān)任MSDN Magazine、ASP.NET Pro、Visual Studio Magazine等技術(shù)雜志的專(zhuān)欄作者。他的blog是http://www.srtsolutions.com/public/blog/20574,可以通過(guò)wwagner@SRTSolutions.com與他聯(lián)系。

圖書(shū)目錄

Chapter 1. Working with Generics 4
Item 1. Use Generic Replacements of 1.x Framework API Classes 4
Item 2. Define Constraints That Are Minimal and Sufficient 14
Item 3. Specialize Generic Algorithms Using Runtime Type Checking 19
Item 4. Use Generics to Force Compile-Time Type Inference 26
Item 5. Ensure That Your Generic Classes Support Disposable Type Parameters 32
Item 6. Use Delegates to Define Method Constraints on Type Parameters 36
Item 7. Do Not Create Generic Specialization on Base Classes or Interfaces 42
Item 8. Prefer Generic Methods Unless Type Parameters Are Instance Fields 46
Item 9. Prefer Generic Tuples to Output and Ref Parameters 50
Item 10. Implement Classic Interfaces in Addition to Generic Interfaces 56
Chapter 2. Multithreading in C# 63
Item 11. Use the Thread Pool Instead of Creating Threads 67
Item 12. Use BackgroundWorker for Cross-Thread Communication 74
Item 13. Use lock() as Your First Choice for Synchronization 78
Item 14. Use the Smallest Possible Scope for Lock Handles 86
Item 15. Avoid Calling Unknown Code in Locked Sections 90
Item 16. Understand Cross-Thread Calls in Windows Forms and WPF 93
Chapter 3. C# Design Practices 105
Item 17. Create Composable APIs for Sequences 105
Item 18. Decouple Iterations from Actions, Predicates, and Functions 112
Item 19. Generate Sequence Items as Requested 117
Item 20. Loosen Coupling by Using Function Parameters 120
Item 21. Create Method Groups That Are Clear, Minimal, and Complete 127
Item 22. Prefer Defining Methods to Overloading Operators 134
Item 23. Understand How Events Increase Runtime Coupling Among Objects 137
Item 24. Declare Only Nonvirtual Events 139
Item 25. Use Exceptions to Report Method Contract Failures 146
Item 26. Ensure That Properties Behave Like Data 150
Item 27. Distinguish Between Inheritance and Composition 156
Chapter 4. C# 3.0 Language Enhancements 163
Item 28. Augment Minimal Interface Contracts with Extension Methods 163
Item 29. Enhance Constructed Types with Extension Methods 167
Item 30. Prefer Implicitly Typed Local Variables 169
Item 31. Limit Type Scope by Using Anonymous Types 176
Item 32. Create Composable APIs for External Components 180
Item 33. Avoid Modifying Bound Variables 185
Item 34. Define Local Functions on Anonymous Types 191
Item 35. Never Overload Extension Methods 196
Chapter 5. Working with LINQ 201
Item 36. Understand How Query Expressions Map to Method Calls 201
Item 37. Prefer Lazy Evaluation Queries 213
Item 38. Prefer Lambda Expressions to Methods 218
Item 39. Avoid Throwing Exceptions in Functions and Actions 222
Item 40. Distinguish Early from Deferred Execution 225
Item 41. Avoid Capturing Expensive Resources 229
Item 42. Distinguish Between IEnumerable and IQueryable Data Sources 242
Item 43. Use Single() and First() to Enforce Semantic Expectations on Queries 247
Item 44. Prefer Storing Expression<> to Func<> 249
Chapter 6. Miscellaneous 255
Item 45. Minimize the Visibility of Nullable Values 255
Item 46. Give Partial Classes Partial Methods for Constructors, Mutators, and Event Handlers 261
Item 47. Limit Array Parameters to Params Arrays 266
Item 48. Avoid Calling Virtual Functions in Constructors 271
Item 49. Consider Weak References for Large Objects 274
Item 50. Prefer Implicit Properties for Mutable, Nonserializable Data 277
Index 283

本目錄推薦

掃描二維碼
Copyright ? 讀書(shū)網(wǎng) hotzeplotz.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號(hào) 鄂公網(wǎng)安備 42010302001612號(hào)