下载  >  课程资源  >  .Net  > visual c#2010

visual c#2010 评分:

Table of Contents Acknowledgments xvii Introduction . xix Part I Introducing Microsoft Visual C# and Microsoft Visual Studio 2010 1 Welcome to C# . 3 Beginning Programming with the Visual Studio 2010 Environment 3 Writing Your First Program 8 Using Namespaces 14 Creating a Graphical Application 17 C
PUBLISHED BY Microsoft press A Division of Microsoft Corporation One Microsoft Way Redmond. Washington 98052-6399 Copyright o 2010 by John Sharp All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. Library of Congress Control Number: 2009939912 Printed and bound in the united states of america 123456789QwT543210 Distributed in Canada by H B Fenn and Company Ltd A CIP catalogue record for this book is available from the British Library Microsoft Press books are available through booksellers and distributors worldwide For further information about international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly atfax(425)936-7329.VisitourWebsiteatwww.microsoft.com/mspress.Sendcommentstomspinput@microsoft.com Microsoft, Microsoft PreSs, Excel, IntelliSense, Internet Explorer, Jscript, MS, MSDN, SQL Server, Visual Basic, Visual C#, Visual C++, Visual Studio, win32, windows, and windows vista are either registered trademarks or trademarks of the microsoft group of companies. Other product and company names mentioned herein may be the trademarks of their respective owners The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred This book expresses the author's views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book Acquisitions Editor: Ben ryan Developmental Editor: Devon Musgrave Project Editor: Rosemary Caperton EditorialProduction:WaypointPress,www.waypointpress.com Technical Reviewer: Per Blomqvist; Technical Review services provided by Content Master, a member of CM Group, Ltd Cover: Tom Draper design Body part No. X16-81630 Contents at a glance PartI Introducing Microsoft Visual C and Microsoft Visual studio 2010 1 Welcome to c# 2 Working with Variables, Operators, and Expressions.... 27 3 Writing Methods and Applying Scope ,,,,47 4 Using Decision Statements 73 5 Using Compound Assignment and Iteration Statements 91 6 Managing Errors and Exceptions ..109 Part ll Understanding the c#f language 7 Creating and Managing Classes and Objects........ 129 8 Understanding values and references ,,151 9 Creating value Types with Enumerations and Structures...173 10 Using arrays and collections ..191 11 Understanding Parameter arrays 219 12 Working with Inheritance 231 13 Creating Interfaces and Defining Abstract Classes 253 14 Using garbage collection and resource management .......279 Part Ill Creating Components 15 Implementing Properties to Access Fields ..295 16 Using Indexers. 315 17 Interrupting Program Flow and Handling Events 329 18 Introducing Generics 353 19 Enumerating collections................381 20 Querying In-Memory Data by Using Query Expressions.. 395 21 Operator Overloading ,,,,,,,,,,,419 Contents at a glance Part IV Building windows Presentation Foundation Applications 22 Introducing Windows Presentation Foundation ,,,,443 23 Gathering User Input 477 24 Performing validation 509 PartV Managing Data 25 Querying Information in a Database........... 535 26 Displaying and Editing Data by Using the Entity Framework and Data Binding 565 Part VI Building Professional Solutions with Visual studio 2010 27 Introducing the Task Parallel Library 599 28 Performing parallel data Access 649 29 Creating and Using a Web Service 683 Appendix Interoperating with dynamic languages 717 Table of contents Acknowledgments XVII Introduction 垂春 PartI Introducing Microsoft Visual C# and Microsoft Visual studio 2010 1 Welcome to c# Beginning Programming with the Visual Studio 2010 Environment Writing Your First Program Using Namespaces. 14 Creating a Graphical Application Chapter 1 Quick Referen 26 2 Working with Variables, Operators, and Expressions 27 Understanding Statements 27 Using identifiers 28 Identifying Keywords 28 Using Variables ........29 Naming Variables Declaring variables Working with Primitive data types 31 Unassigned Local variables 32 Displaying Primitive Data Type values .32 Using Arithmetic Operators .36 Operators and Types .37 Examining arithmetic Operators .38 Controlling Precedence 41 Using associativity to Evaluate Expressions 42 Associativity and the Assignment Operator What do you think of this book? We want to hear from you! Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you. To participate in a brief online survey, please visit: www.microsoft.com/learning/booksurvey/ Table of contents Incrementing and Decrementing Variables ...43 Prefix and postfix .44 Declaring Implicitly Typed Local Variables 45 Chapter 2 Quick Reference 46 3 Writing Methods and Applying Scope ,,,,,,,47 Creating Methods 47 Declaring a method 48 Returning Data from a Method 49 Calling Methods 51 Specifying the method call syntax ....51 Applying scope ....53 Defining local scope 54 Defining Class Scope .54 Overloading Method Writing Methods 56 Using Optional Parameters and Named Arguments 64 Defining Optional Parameters 65 Passing Named Arguments 66 Resolving ambiguities with Optional Parameters and Named Arguments .66 Chapter 3 Quick Reference 72 4 Using Decision Statements 73 Declaring boolean variables 73 Using boolean operators Understanding Equality and Relational Operators Understanding Conditional Logical Operators 75 Short-Circuiting Summarizing Operator Precedence and Associativity Using if Statements to Make Decisions .77 Understanding if Statement Syntax .77 Using blocks to Group Statements .78 Cascading if Statements 79 Using switch Statements 84 Understanding switch Statement Syntax 85 Following the switch Statement Rules .86 Chapter 4 Quick Reference ....89 Table of contents 5 Using Compound Assignment and Iteration Statements... 91 Using Compound Assignment Operators 91 Writing while Statements 92 Writing for Statements 97 Understanding for Statement Scope 98 Writing do statements Chapter 5 Quick Reference 108 6 Managing Errors and Exceptions 109 Coping with errors ..109 Trying code and catching exceptions Unhandled Exceptions 111 Using Multiple catch Handlers .......112 Catching Multiple Exceptions Using checked and Unchecked Integer arithmetic 118 riting Checked Statements Writing Checked Expressions Throwing Exceptions 121 Using a finally block 124 Chapter 6 Quick Reference 126 Part ll Understanding the C# Language 7 Creating and Managing Classes and Objects 。0 129 Understanding Classification 129 The Purpose of Encapsulation 130 Defining and using a class 130 Controlling Accessibility ..132 Working with Constructors 133 Overloading Constructors ....134 Understanding static Methods and data 142 Creating a shared Field 143 Creating a static Field by Using the const Keyword 44 Static Classes 44 Anonymous Classes 147 Chapter 7 Quick Reference ..149 II Table of contents 8 Understanding values and References ,,,,,,151 Copying value Type Variables and Classes 151 Understanding Null Values and Nullable Types 156 Using Nullable Type 157 Understanding the Properties of Nullable Types 158 Using ref and out Parameters ...159 Creating ref Parameters 159 Creating out Parameters .160 How Computer Memory Is Organized .162 Using the Stack and the Heap. .164 The System Object Class 165 Boxing 165 Unboxing 166 Casting Data Safely 168 The is Operator 168 The as operator 169 Chapter 8 Quick Reference 9 Creating Value Types with Enumerations and Structures...173 Norking with Enumerations .173 Declaring an Enumeration .173 Using an Enumeration 174 Choosing enumeration Literal values 175 Choosing an Enumeration's Underlying Type 176 Working with Structure 178 Declaring a structure 180 Understanding Structure and Class Differences 181 Declaring Structure Variables 182 Understanding structure Initialization 183 Copying Structure Variables 187 Chapter 9 Quick Reference 190 10 Using Arrays and Collections 191 What Is an array 191 Declaring Array Variables 191 Creating an Array Instance 192 itializing array variabl 193 Table of contents Creating an Implicitly Typed array 194 Accessing an Individual Array Element 195 Iterating through an arra 195 Copying arrays 197 Using Multidimensional Arrays 198 Using arrays to Play Cards 199 hat Are Collection Classes? 206 The arrayList Collection Class 208 The queue Collection Class 210 The Stack collection class 210 The hashtable Collection Class 211 The SortedList Collection Class 213 Using Collection Initializers 214 Comparing arrays and Collections 214 Using collection Classes to Play Cards .....214 Chapter 10 Quick Reference 218 11 Understanding Parameter Arrays...……219 Using Array Arguments 220 Declaring a params Array 221 Using params object[] ∴,,,.223 Using a params Array 224 Comparing parameters arrays and optional parameters 226 Chapter 11 Quick Reference 229 12 Working with Inheritance ●春自 231 What Is Inheritance? 231 Using Inheritance 232 Calling Base Class Constructors 234 Assigning Classes 235 Declaring new methods 237 Declaring Virtual Methods 238 Declaring override methods 239 Understanding protected access 242 Understanding Extension Methods 247 Chapter 12 Quick Reference 251

...展开详情
2012-10-15 上传 大小:17.61MB
举报 收藏 (1)
分享

评论 下载该资源后可以进行评论 共6条

poorear01 非常好,写了一个脚本,真是很有帮助
2014-11-13
回复
anbandinguo 学习的好资料。关键是你英语够好。
2014-05-22
回复
lixin6960630 原来是学习资料
2014-05-16
回复
tanya123lian 下不完整,打不开
2013-10-28
回复
czdfkj2010 原来是学习材料
2013-05-21
回复
Microsoft Visual c# 2008

微软开发的一种面向对象的编程语言。微软.NET开发环境的重要组成部分

立即下载
C##系统下载...

C#编写的系统,拿走不谢...

立即下载
Microsoft Visual C# 2010

2010的入门教程 [Visual.Studio.2010.高级编程].Professional.Visual.Studio.2010.pdf

立即下载
visual c#2010中文免费版

从visual studio 2010 Express中独立出来的c#学习版

立即下载
Visual C# 2010 Express

C#作为微软的旗舰编程语言,深受程序员喜爱,是他们编写高效应用程序的首选语言。Visual C#2010新增了大量可圈可点的丰富特性,《Visual C# 2010从入门到精通:Step by Step》围绕着基础知识和这些新特性全面介绍了如何利用Visual Studio2010和.NET Framework 4.O编写应用程序。书中沿袭深受读者欢迎的Step by Step风格,通过丰富的练习引导读者逐步构建Windows应用程序,访问SQL Server数据库,开发 Web应用程序,创建并使用Web服务等。

立即下载
C# 大全

C# 大全 C#概述

立即下载
《C#入门经典》 第7版--高清版

本书全面介绍C#编程的所有知识,从该语言本身一直到Windows和Web编程,再到数据源的使用,最后是一些高级技术。本资源是《C#入门经典》 第7版,基于C#6.0 & Visual Studio 2015编写。

立即下载
vs2010以上可用C# .net 报表工具 FastReport.Net4.0 + 破解文+详细破解方法 绝对有效

vs2010以上可用C# .net 报表工具 FastReport.Net4.0 + 破解文+详细破解方法 绝对有效,里面包含原始安装包,破解文件,详细有效的破解方法,绝对亲测可用

立即下载
Visual C# 2010 Express - 简体中文

c#开发环境

立即下载