C#高级编程 11版本

1星(超过10%的资源)
所需积分/C币:45 2019-03-16 15:47:28 28.88MB PDF
658
收藏 收藏
举报

最新版c#高级编程,原汁原味。掌握第一手资料。
Pro c#7 with netand net core Andrew troelsen Philip Japikse Minneapolis, Minnesota, USA West Chester, OhiO, USA ISBN-13(pbk):978-1-4842-3017-6 ISBN-13( (electronic:978-1-4842-3018-3 https://doi.org/10.1007/978-1-4842-3018-3 Library of Congress Control Number: 2017958717 Copyright o 2017 by Andrew Troelsen and Philip Japikse This work is subject to copyright All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein CoverimagebyFreepik(www.freepik.com) Managing Director: Welmoed Spahr Editorial director: todd green Acquisitions Editor: Gwenan Spearing Development Editor: Laura berenson Technical Reviewers Eric Potter, Lee brandt and sean whitesell Coordinating Editor: Mark Powers Copy Editor: Kim Wimpsett Distributed to the book trade worldwide by Springer Science+ Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax(201)348-4505, e-mail orders-ny@springer-sbm.comorvisitwww.springeronline.comApressMedia,LlcisaCaliforniaLlc and the sole member(owner)is Springer Science Business Media Finance Inc (SSBM Finance Inc) SSBM Finance Inc is a Delaware corporation. Forinformationontranslationspleasee-mailrightsqapress.comorvisitwww.apress.com/ rights-permissions Apress titles may be purchased in bulk for academic, corporate, or promotional use eBook versions and licenses are also available for most titles. For more information reference our Print and eBook bulk Saleswebpageatwww.apress.com/bulk-sales Any source code or other supplementary material referenced by the author in this book is available to readersonGithubviathebooksproductpagelocatedatwww.apress.com/9781484230176.Formore detailedinformationpleasevisitwww.apress.com/source-code. Printed on acid-free paper To the entire Troelsen clan: Mary(mom), Walter(dad), Mandy (wife), and Soren(son) We miss you, Mikko(the cat) -Andrew To my family, Amy(wife), Conner (son), Logan(son), and Skylar(daughter), thank you for all of the support and patience you have given me phili Contents at a glance About the authors ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ About the technical reviewers ■■■凵■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■■口■■ Acknowledgments ■■■■■■ Introduction Part I: Introducing C# and the NET Platform Chapter 1: The Philosophy of net. ■■■■■口■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■ 3 Chapter 2: Building C# Applications 35 Part I: Core Cff Programing ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 53 Chapter 3: Core C#f Programming Constructs, Part I.mmmaammmm 55 Chapter 4: Core C# Programming Constructs, Part laman 111 Part ll: Object-Oriented Programming with cammann 159 Chapter 5: Understanding encapsulation mmmmmmammmmmmm 161 Chapter 6: Understanding Inheritance and Polymorphism. 213 Chapter 7: Understanding Structured Exception Handling a mmmammmammaamn 255 Chapter 8: Working with Interfaces.mat ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 283 Part IV: Advanced C# Programming nmmmmmaamaammmammmammmnma 323 Chapter 9: collections and Generics m m m mm IIIi 325 Chapter 10: Delegates, Events, and Lambda Expressions mmmmmmmmmmam 365 Chapter 11: Advanced c#f Language Features mm maa aaan 407 Chapter 12: LINQ to Objects . 445 Chapter 13: Understanding object Lifetime umaaaaan iain: 479 CONTENTS ATA GLANCE Part V: Programming with NET Assemblies. ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 507 Chapter 14: Building and configuring Class libraries.ammmmmmni 509 Chapter 15: Type Reflection, Late Binding, and Attribute-Based Programming mm, 561 Chapter 16: Dynamic Types and the Dynamic Language Runtime 609 Chapter 17: Processes, AppDomains, and object Contexts mmmmmammammmam 631 Chapter 18: Understanding CiL and the role of Dynamic Assemblies.a 657 Part V: Introducing the NET Base Class Libraries mammal 699 Chapter 19: Multithreaded, Parallel, and Async Programming ammar ■■■■■■■■■■■■■■■■■■■ 701 Chapter 20: File /0 and object Serialization mmmmmmmmmmmmmmn 755 Chapter 21: Data Access with ADO. NET mmmmmmmm amman 803 Chapter 22: Introducing Entity Framework 6mmmEIaIIa Iaan 857 Chapter 23: Introducing Windows communication Foundation 907 Partv:WindowsPresentationFoundation…963 Chapter 24: Introducing Windows Presentation Foundation and XAMLama 965 Chapter 25: WPF Controls, Layouts, Events, and data Binding ummmmmma. 1003 Chapter 26: WPF Graphics Rendering Services ammerman 1061 Chapter 27: WPF Resources, Animations Styles, and Templates amam man 1095 Chapter 28: WPF Notifications, Validations, Commands, and MWVMommmm 1137 Part vil aspnet Chapter 29: Introducing ASPNET MVc ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■ 1179 Chapter 30: Introducing ASPNeT Web APl ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 1223 Part x: INET CORE…1243 Chapter 31: The Philosophy of NET Core 1245 Chapter 32: Introducing Entity Framework 1255 Chapter 33: Introducing ASPNeT Core Web Applications mmmmmmmmm 1279 Chapter 34: Introducing ASPNET Core Service Applications. mmmammnmnaaa 1329 Index 1353 Contents About the authors ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ About the technical reviewers ■■■凵■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■■口■■ Acknowledgments ■■■■■■ Introduction mmmm lvi Part I: Introducing C# and the net Platform m ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ Chapter 1: The Philosophy of netan An Initial look at the neT Platform nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnDnnDDnDDDnnDDnnnDD Some Key benefits of the NET Platform 3344 Introducing the Building blocks of the NET Platform(the CLR, CTS, and cls The role of the base class libraries What c# brings to the Table Managed vs. Unmanaged code Additional NET-Aware Programming Languages 8 Life in a Multilanguage World An Overview of net assemblies 9 The role of the Common Intermediate Language Benefits of cil 13 Compiling cil to Platform- Specific Instructions....………13 The role of NeT Type Metadata The role of the assembly Manifest 14 Understanding the common type Systen....,,,……………15 CTS Class Types CTS Interface Types… CONTENTS CtS Structure Types 16 CTS Enumeration Types. ..............................................................................................17 CTS Delegate types 17 CTS Type Members 17 Intrinsic CTS Data Types 8 Understanding the common Language Specification 19 Ensuring cLs compliance 20 Understanding the common Language Runtime.mme..mnnnenanannnn 20 The Assembly/Namespace/Type Distinction The role of the Microsoft Root Namespace Accessing a Namespace Programmatically 2552 Referencing External Assemblies....................... Exploring an assembly Using ildasm.exe 27 viewing C‖ Code viewing type Metadata Viewing Assembly Metadata(aka the Manifest) 30 The Platform-Independent Nature of NeT. The Mono project Amarin………32 Microsoft net core 面面日面面D日B自面日面面面日B自面面面面面B自面面面面B自面日面面日B自日面日面面日面面面日面面日面面日B自面日面面日B自面日面面面重 32 Summary as 33 Chapter 2: Building C# Applications Building. NET Applications on Windows 35 Installing Visual Studio 2017................................................................................36 Taking visual studio 2017 for a Test-Drive 38 Visual studio 2017 Professional 50 Visual Studio 2017 Enterprise 50 The NET Framework documentation System . Building NET Applications on a Non-Windows OS ….52 Summar 52 CONTENTS Part l Core Cif Programing.aa. ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 53 Chapter3:G0rec# Programming Constructs, Part,,,,…,,…,,…55 The anatomy of a Simple c# Program 55 Variations on the Main( Method Specifying an Application Error code . Processing Command-Line Arguments 59 Specifying Command-Line Arguments with Visual Studio An Interesting Aside: Some Additional Members of the System Environment Class.. 61 The System. Console class Basic Input and output with the Console class Formatting console output Formatting Numerical Data.…… Formatting Numerical Data Beyond System Data Types and corresponding Ct Keywords …….68 Variable declaration and initialization Intrinsic Data Types and the new Operator. 71 The data Type class hierarchy Members of Numerical data types Members of System. boolean 74 Members of System. Char 74 Parsing Values from String Data Using Try Parse to Parse values from String Data 75 System DateTime and System The system. Numerics. dll Assembly ,76 Digit Separators(NeW)…......,,……………………………78 Binary Literals( New) 78 Working with String Data 79 Basic string manipulation String concatenation Escape Characters 面日日国日日日面日日日面日自日日面日日面日日日面日日日面日日目面面日重目面面日面日面日面日面日面日面日面日日面日日面面日日面面日面日日面日面日面日日面日 CONTENTS Defining verbatim Strings . Strings and equality......................182 Strings Are Immutable. The system Text stringBuilder type String Interpolation Narrowing and Widening Data Type Conversions 88 The checked Keyword Setting Project-Wide Overflow Checking ...........................93 The unchecked Keyword 93 Understanding Implicitly Typed Local variables 94 Restrictions on Implicitly Typed variables 95 Implicit Typed Data Is Strongly Typed Data Usefulness of Implicitly typed Local Variables 97 C# Iteration Constructs 98 The for loop. The foreach Loop 99 Use of Implicit Typing Within foreach Constructs 99 The while and do/while looping constructs 100 Decision Constructs and the Relational/ equality operators.... …101 The if/ else statement… 101 Equality and relational Operators…...,,.…….101 The conditional Operator 102 Logical Operators.… 103 The switch statement 103 Using Pattern Matching in Switch Statements(New) 面日面面日B日面B面面日面面日B面日面日B面 ,106 Summary...,..,,………….109 Chapter 4: Core C# Programming Constructs, Part mmmmm 111 Understanding C# 111 C# Array Initialization Syntax 112 mplicitly Typed Local Arrays.......……,13

...展开详情
试读 127P C#高级编程 11版本
立即下载 低至0.43元/次 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
sdcqsy 忽悠人呀,这明明是英语版,关键字还写中文!!!
2020-12-22
回复
真俗不二 真是原滋原味 纯英文的
2020-10-28
回复
_KIng_KING__ 骗子啊,坑了我5分
2019-04-25
回复
首先积分不是我设定的,你要是觉得有问题可以私信联系我。
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
上传资源赚钱or赚积分
最新推荐
C#高级编程 11版本 45积分/C币 立即下载
1/127
C#高级编程 11版本第1页
C#高级编程 11版本第2页
C#高级编程 11版本第3页
C#高级编程 11版本第4页
C#高级编程 11版本第5页
C#高级编程 11版本第6页
C#高级编程 11版本第7页
C#高级编程 11版本第8页
C#高级编程 11版本第9页
C#高级编程 11版本第10页
C#高级编程 11版本第11页
C#高级编程 11版本第12页
C#高级编程 11版本第13页
C#高级编程 11版本第14页
C#高级编程 11版本第15页
C#高级编程 11版本第16页
C#高级编程 11版本第17页
C#高级编程 11版本第18页
C#高级编程 11版本第19页
C#高级编程 11版本第20页

试读结束, 可继续阅读

45积分/C币 立即下载 >