C# 5.0 in a Nutshell The Definitive Reference

5星(超过95%的资源)
所需积分/C币:42 2012-09-12 14:40:32 11.16MB PDF
5
收藏 收藏
举报

C#.5.0.in.a.Nutshell.The.Definitive.Reference,.Joseph.Albahari,.Ben.Albahari,.5ed
C#50 INA NUTSHELL Fifth edition Joseph albahari and ben albahari ○ REILLY° Beijing· Cambridge· Farnham·Koln· Sebastopol· Tokyo C#5.0 in a nutshell. fifth edition by Joseph albahari and Ben albahari Copyright@ 2012 Joseph Albahari and Ben Albahari. All rights reserved Printed in the United States of americ Published by o'Reilly Media, Inc, 1005 Gravenstein Highway North, Sebastopol, CA 95472 O'Reilly books may be purchased for educational, business, or sales promotional use. Online editionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinfor mation, contact our corporate/institutional sales department: 800-998-9938or corporateaoreilly.com Editor: Rachel roumeliotis Indexer: Jay Marchand Production Editor: Melanie Yarbrough Cover designer Karen montgome Copyeditor: Nancy Reinhardt Interior Designer: David Futato Proofreader: Jennifer Knight Illustrator: Robert romano June 2012 Fifth edition Revision history for the fifth edition 2012-06-08 First release Seehttp:/oreilly.com/catalog/errata.csp?isbn=9781449320102forreleasedetails Nutshell Handbook, the Nutshell Handbook logo, and the O'reilly logo are registered trade marks of O'Reilly Media, InC. C#5.0 in a Nutshell, the cover image of a numidian crane, and related trade dress are trademarks of o'Reilly media, Inc Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly media Inc, was aware of a trademark claim, the designations have been printed in caps or initial caps While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein ISBN:978-1-449-32010-2 1340210346 Table of contents Preface Introducing C# and the NET Framework Object Orientation Type safe Memory managemer 2 Platform Support C#'s Relationship with the Clr The clr and Net framework C# and windows runtime What's New in C# 5.0 What's New in C# 4.0 What's New in C#3.0 2. C# Language basics....................... 9 A First C# Program Syntax 12 Type b 15 Numeric types 23 Boolean Type and Operators 30 Strings and Characters arrays 34 Variables and parameters 38 Expressions and operators 47 Statements Namespaces Ⅲ 3. Creating types in C# ,,67 Cl 6 Inheritance 80 The object Type 89 93 Access modifiers 94 Interfaces 96 Enums 102 Nested t ypes 105 enerics 106 4. Advanced c# 119 Delegates 119 Events 128 Lambda expressions 135 Anonymous Methods try Statements and Exceptions 140 Enumeration and iterators 148 Nullable types Operator Overloading 158 Extension methods 162 Anonymous Types 164 Dynamic binding 165 Attributes 173 Caller Info Attributes(C# 5 175 Unsafe Code and pointers 177 Preprocessor Directives 180 Ⅹ ML Documentation 182 5. Framework overview 187 The clr and core framework 189 Applied Technologies 194 6. Framework fundamentals ,,,,,201 String and Text Handling 201 Dates and Ti 214 Dates and Time Zones 221 Formatting and Parsing 227 Standard Format Strings and Parsing Flags 233 Other Conversion mechanisms 240 Globalization 244 Working with Numbers 245 Enums 249 Tuple 252 The Guid Struct 253 iv Table of Contents Equality Comparison 254 Order Comparison 264 Utility Classes 267 7. Collections 271 Enumeration 271 The I Collection and IList Interfaces 279 The array class 282 Lists, Queues, Stacks, and sets 291 Dictionaries 299 Customizable collections and proxies 306 Plugging in Equality and Order 312 8. LINQ Queries ,319 Getting started 319 Fluent syntax 321 Query Expressions 328 Deferred execution 332 338 Composition strategies 342 Projection Strategies 345 Interpreted Queries 347 LinQ to SQL and Entity Framework 354 Building Query Expi ressions 368 9. LINQ Operators...... 375 Overview 377 Filtering g 379 Projecting 383 Joining 395 Ordering 403 ping 406 Set operators 409 Conversion methods 410 Element operato 413 Aggregation Methods 415 Quantifiers 419 Generation Methods 420 10. LINQ to XML 423 Architectural overview 423 X-DOM Overview 424 Instantiate ng an X-DOM 427 Navigating and Querying 430 Updating an X-DOm 435 Table of Contents I Working with values 438 Documents and declarations 441 Names and namespaces 444 Annotations 450 Projecting into an X-DOM 450 11. other Xml technologies 45 Xmlreader 458 XmIwriter 467 Patterns for Using XmlReader/XmlWriter 469 Xmldocument 473 XPath 477 XSD and Schema validation 481 XSLT 484 12. Disposal and Garbage Collection 485 IDisposable, Dispose, and Close 485 Automatic Garbage Collection 490 Finalizers 493 How the garbage Collector Works 497 Managed Memory Leaks 501 Weak references 505 13. Diagnostics and Code Contracts 509 Conditional compilation 509 Debug and Trace Classe 512 Code Contracts Overview 516 Preconditions 520 Postconditions 524 Assertions and object Invariants 527 Contracts on interfaces and abstract methods 528 Dealing with Contract Failure 529 Selectively enforcing Contracts 531 Static Contract Checking 533 Debugger Integration 535 Processes and process threads 536 Stack Trace and stack Frame 537 Windows Event logs 538 Performance Counters 541 The Stopwatch Class 545 14. Concurrency asynchrony...................547 Introduction 547 Threading 548 Tasks 565 vi Table of〔 ontents Principles of asynchrony 573 Asynchronous Functions in C#5.0 578 Asynchronous Patterns 594 Obsolete patterns 601 15. Streams and v/o 605 Stream architecture 605 Using Streams 607 Stream Adapters 621 Compression streams 629 Working with Zip file 631 File and Directory Operations 632 File i/o in Windows runtime 642 Memory-Mapped Files 644 Isolated Storage 647 16. Networking… 653 Network architecture Addresses and Ports URIs Client-Side classes 658 Working with htTp 671 Writinganhttpserver 677 Using ftp 680 Using dns 682 Sending Mail with Smtp Client 683 Using TCP 683 Receiving POP3 Mail with TCP 687 TCP in Windows runtime 689 17. Serialization ., ............. 691 Serialization Concepts 691 The data Contract serializer 695 Data Contracts and collections 705 Extending Data Contracts 707 The Binary serializer 710 Binary serialization attributes 712 Binary serialization with iserializable 715 Ⅹ ML Serialization 719 18. Assemblies∴ ,,,729 What's in an assembly 729 Strong Names and Assembly Signing 734 assembly names 737 Authenticode signing 739 Table of contents|ⅶi The global assembly Cache 743 Resources and satellite Assemblies 745 Resolving and Loading Assemblies 754 Deploying assemblies Outside the Base Folder 759 Packing a Single-File executable 760 Working with Unreferenced Assemblies 762 19. Reflection and metadata ,,765 Reflecting and Activating Types 766 Reflecting and Invoking members Reflecting assembl 785 Working with attributes 786 Dynamic Code Generation 792 Emitting Assemblies and Types ac Emitting Type Members 803 Emitting generic Methods and Types 808 Awkward Emission Targets 810 Parsing il 814 20. Dynamic Programming∴…821 The Dynamic Language Runtime 821 Numeric Type unification 823 Dynamic Member Overload resolution 824 Implementing Dynamic Objects 830 Interoperating with Dynamic Languages 833 21. Security ,837 Permissions 837 Code access Security(Cas 842 Allowing Partially Trusted Callers 845 The transparency model 847 Sandboxing Another Assembly 855 Operating System Security 858 Identity and role security 861 crypto 862 Windows data Protection 863 Hashing 864 ymmetrIc Encryption 865 Public Key encryption and Signing 870 22. Advanced Threading Synchronization Overview 876 Exclusive Locking 87 Locking and Thread Safety 884 Non- Exclusive Locking 89 ⅶ ii Table of Contents

...展开详情
试读 127P C# 5.0 in a Nutshell The Definitive Reference
立即下载 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
peter236 英文的書,蠻厚的,適合做工具書。
2015-03-07
回复
liuyijuna C#最权威的介绍
2014-12-26
回复
tyler_download 写的很详实,但感觉有点琐碎,当工具书看就好了
2014-09-11
回复
kk3346 英文好书。。
2014-08-10
回复
simon_chx 书很好,就是英文版,看着很累
2014-03-28
回复
happywinds 很好的书,很不错。
2013-08-19
回复
wjqx12345 上课必须教材~应该很有用~~
2013-03-11
回复
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
  • 分享精英

关注 私信
上传资源赚钱or赚积分
最新推荐
C# 5.0 in a Nutshell The Definitive Reference 42积分/C币 立即下载
1/127
C# 5.0 in a Nutshell The Definitive Reference第1页
C# 5.0 in a Nutshell The Definitive Reference第2页
C# 5.0 in a Nutshell The Definitive Reference第3页
C# 5.0 in a Nutshell The Definitive Reference第4页
C# 5.0 in a Nutshell The Definitive Reference第5页
C# 5.0 in a Nutshell The Definitive Reference第6页
C# 5.0 in a Nutshell The Definitive Reference第7页
C# 5.0 in a Nutshell The Definitive Reference第8页
C# 5.0 in a Nutshell The Definitive Reference第9页
C# 5.0 in a Nutshell The Definitive Reference第10页
C# 5.0 in a Nutshell The Definitive Reference第11页
C# 5.0 in a Nutshell The Definitive Reference第12页
C# 5.0 in a Nutshell The Definitive Reference第13页
C# 5.0 in a Nutshell The Definitive Reference第14页
C# 5.0 in a Nutshell The Definitive Reference第15页
C# 5.0 in a Nutshell The Definitive Reference第16页
C# 5.0 in a Nutshell The Definitive Reference第17页
C# 5.0 in a Nutshell The Definitive Reference第18页
C# 5.0 in a Nutshell The Definitive Reference第19页
C# 5.0 in a Nutshell The Definitive Reference第20页

试读结束, 可继续阅读

42积分/C币 立即下载