Muutke küpsiste eelistusi

E-raamat: Beginning Visual C# 2012 Programming

  • Formaat: EPUB+DRM
  • Ilmumisaeg: 04-Dec-2012
  • Kirjastus: Wrox Press
  • Keel: eng
  • ISBN-13: 9781118331941
Teised raamatud teemal:
  • Formaat - EPUB+DRM
  • Hind: 34,12 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: EPUB+DRM
  • Ilmumisaeg: 04-Dec-2012
  • Kirjastus: Wrox Press
  • Keel: eng
  • ISBN-13: 9781118331941
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

New edition.

Step-by-step beginner’s guide to Visual C# 2012

Written for novice programmers who want to learn programming with C# and the .NET framework, this book offers programming basics such as variables, flow control, and object oriented programming. It then moves into web and Windows programming and data access (databases and XML). The authors focus on the tool that beginners use most often to program C#, the Visual C# 2012 development environment in Visual Studio 2012.

  • Puts the spotlight on key beginning level topics with easy-to-follow instructions for Microsoft Visual C# 2012
  • Explores how to program for variables, expressions, flow control, and functions
  • Explains the debugging process and error handling as well as object oriented programming, and much more

Beginning Microsoft Visual C# 2012 Programming offers beginners a guide to writing effective programming code following simple step-by-step methods, each followed by the opportunity to try out newly acquired skills.

Introduction xxxi
PART I THE C# LANGUAGE
Chapter 1 Introducing C#
3(10)
What Is the .NET Framework?
3(4)
What's in the .NET Framework?
4(1)
Writing Applications Using the .NET Framework
4(1)
CIL and JIT
4(1)
Assemblies
5(1)
Managed Code
5(1)
Garbage Collection
6(1)
Fitting It Together
6(1)
Linking
7(1)
What Is C#?
7(1)
Applications You Can Write with C#
8(1)
C# in this Book
8(1)
Visual Studio 2012
8(2)
Visual Studio Express 2012 Products
9(1)
Solutions
9(1)
Summary
10(3)
Chapter 2 Writing A C# Program
13(12)
The Visual Studio 2012 Development Environment
14(2)
Console Applications
16(4)
The Solution Explorer
18(1)
The Properties Window
19(1)
The Error List Window
19(1)
Desktop Applications
20(3)
Summary
23(2)
Chapter 3 Variables and Expressions
25(24)
Basic C# Syntax
26(2)
Basic C# Console Application Structure
28(1)
Variables
29(8)
Simple Types
29(4)
Variable Naming
33(1)
Naming Conventions
34(1)
Literal Values
34(2)
Variable Declaration and Assignment
36(1)
Expressions
37(8)
Mathematical Operators
37(4)
Assignment Operators
41(1)
Operator Precedence
42(1)
Namespaces
42(3)
Summary
45(4)
Chapter 4 Flow Control
49(30)
Boolean Logic
49(9)
Boolean Assignment Operators
52(1)
Bitwise Operators
53(4)
Operator Precedence Updated
57(1)
The goto Statement
58(1)
Branching
59(6)
The Ternary Operator
59(1)
The if Statement
59(3)
Checking More Conditions Using if Statements
62(1)
The switch Statement
63(2)
Looping
65(10)
do Loops
66(2)
while Loops
68(2)
for Loops
70(4)
Interrupting Loops
74(1)
Infinite Loops
75(1)
Summary
75(4)
Chapter 5 More About Variables
79(26)
Type Conversion
80(6)
Implicit Conversions
80(1)
Explicit Conversions
81(3)
Explicit Conversions Using the Convert Commands
84(2)
Complex Variable Types
86(12)
Enumerations
87(1)
Defining Enumerations
87(3)
Structs
90(1)
Defining Structs
90(2)
Arrays
92(1)
Declaring Arrays
93(2)
foreach Loops
95(1)
Multidimensional Arrays
96(1)
Arrays of Arrays
97(1)
String Manipulation
98(4)
Summary
102(3)
Chapter 6 Functions
105(26)
Defining and Using Functions
106(10)
Return Values
108(1)
Parameters
109(2)
Parameter Matching
111(1)
Parameter Arrays
111(2)
Reference and Value Parameters
113(2)
Out Parameters
115(1)
Variable Scope
116(5)
Variable Scope in Other Structures
118(2)
Parameters and Return Values versus Global Data
120(1)
The Main() Function
121(2)
Struct Functions
123(1)
Overloading Functions
124(1)
Using Delegates
125(3)
Summary
128(3)
Chapter 7 Debugging and Error Handling
131(26)
Debugging in Visual Studio
132(15)
Debugging in Nonbreak (Normal) Mode
132(1)
Outputting Debugging Information
133(4)
Tracepoints
137(2)
Diagnostics Output Versus Tracepoints
139(1)
Debugging in Break Mode
140(1)
Entering Break Mode
140(2)
Monitoring Variable Content
142(2)
Stepping Through Code
144(2)
Immediate and Command Windows
146(1)
The Call Stack Window
146(1)
Error Handling
147(6)
try...catch...finally
147(5)
Listing and Configuring Exceptions
152(1)
Notes on Exception Handling
152(1)
Summary
153(4)
Chapter 8 Introduction to Object-Oriented Programming
157(20)
What Is Object-Oriented Programming?
158(5)
What Is an Object?
158(1)
Properties and Fields
159(1)
Methods
160(1)
Everything's an Object
161(1)
The Life Cycle of an Object
161(1)
Constructors
161(1)
Destructors
162(1)
Static and Instance Class Members
162(1)
Static Constructors
162(1)
Static Classes
163(1)
OOP Techniques
163(8)
Interfaces
163(1)
Disposable Objects
164(1)
Inheritance
165(2)
Polymorphism
167(1)
Interface Polymorphism
168(1)
Relationships Between Objects
168(1)
Containment
168(1)
Collections
169(1)
Operator Overloading
169(1)
Events
170(1)
Reference Types Versus Value Types
170(1)
OOP in Desktop Applications
171(3)
Summary
174(3)
Chapter 9 Defining Classes
177(26)
Class Definitions in C#
177(5)
Interface Definitions
180(2)
System.Object
182(2)
Constructors and Destructors
184(4)
Constructor Execution Sequence
185(3)
OOP Tools in Visual Studio
188(5)
The Class View Window
188(2)
The Object Browser
190(1)
Adding Classes
191(1)
Class Diagrams
192(1)
Class Library Projects
193(3)
Interfaces Versus Abstract Classes
196(2)
Struct Types
198(2)
Shallow Copying Versus Deep Copying
200(1)
Summary
200(3)
Chapter 10 Defining Class Members
203(32)
Member Definitions
203(10)
Defining Fields
204(1)
Defining Methods
204(1)
Defining Properties
205(5)
Adding Members from a Class Diagram
210(1)
Adding Methods
210(2)
Adding Properties
212(1)
Adding Fields
212(1)
Refactoring Members
212(1)
Automatic Properties
213(1)
Additional Class Member Topics
213(5)
Hiding Base Class Methods
213(2)
Calling Overridden or Hidden Base Class Methods
215(1)
The this Keyword
216(1)
Using Nested Type Definitions
216(2)
Interface Implementation
218(3)
Implementing Interfaces in Classes
219(1)
Explicit Interface Member Implementation
220(1)
Additional Property Accessors
220(1)
Partial Class Definitions
221(1)
Partial Method Definitions
222(2)
Example Application
224(7)
Planning the Application
224(1)
The Card Class
224(1)
The Deck Class
224(1)
Writing the Class Library
224(1)
Adding the Suit and Rank Enumerations
225(1)
Adding the Card Class
226(1)
Adding the Deck Class
227(3)
A Client Application for the Class Library
230(1)
The Call Hierarchy Window
231(1)
Summary
232(3)
Chapter 11 Collections, Comparisons, and Conversions
235(44)
Collections
236(20)
Using Collections
236(5)
Defining Collections
241(1)
Indexers
242(2)
Adding a Cards Collection to CardLib
244(3)
Keyed Collections and IDictionary
247(1)
Iterators
248(4)
Iterators and Collections
252(1)
Deep Copying
253(2)
Adding Deep Copying to CardLib
255(1)
Comparisons
256(18)
Type Comparisons
256(1)
Boxing and Unboxing
257(1)
The is Operator
258(2)
Value Comparisons
260(1)
Operator Overloading
261(4)
Adding Operator Overloads to CardLib
265(4)
The IComparable and IComparer Interfaces
269(2)
Sorting Collections
271(3)
Conversions
274(2)
Overloading Conversion Operators
274(1)
The as Operator
275(1)
Summary
276(3)
Chapter 12 Generics
279(34)
What Are Generics?
280(1)
Using Generics
281(15)
Nullable Types
281(1)
Operators and Nullable Types
282(1)
The ?? Operator
283(4)
The System.Collections.Generic Namespace
287(1)
Lis<T>
287(2)
Sorting and Searching Generic Lists
289(5)
Dictionary<K, V>
294(1)
Modifying CardLib to Use a Generic Collection Class
295(1)
Defining Generic Types
296(12)
Defining Generic Classes
296(2)
The default Keyword
298(1)
Constraining Types
298(6)
Inheriting from Generic Classes
304(1)
Generic Operators
305(1)
Generic Structs
306(1)
Defining Generic Interfaces
306(1)
Defining Generic Methods
306(2)
Defining Generic Delegates
308(1)
Variance
308(2)
Covariance
309(1)
Contravariance
310(1)
Summary
310(3)
Chapter 13 Additional OOP Techniques
313(26)
The :: Operator and the Global Namespace Qualifier
313(2)
Custom Exceptions
315(1)
Adding Custom Exceptions to CardLib
315(1)
Events
316(11)
What Is an Event?
316(1)
Handling Events
317(2)
Defining Events
319(4)
Multipurpose Event Handlers
323(2)
The EventHandler and Generic EventHandler<T>Types
325(1)
Return Values and Event Handlers
326(1)
Anonymous Methods
326(1)
Expanding and Using CardLib
327(7)
A Card Game Client for CardLib
327(7)
Attributes
334(2)
Reading Attributes
334(1)
Creating Attributes
335(1)
Summary
336(3)
Chapter 14 C# Language Enhancements
339(42)
Initializers
340(4)
Object Initializers
340(2)
Collection Initializers
342(2)
Type Inference
344(2)
Anonymous Types
346(4)
Dynamic Lookup
350(4)
The dynamic Type
350(4)
IDynamicMetaObjectProvider
354(1)
Advanced Method Parameters
354(6)
Optional Parameters
354(1)
Optional Parameter Values
355(1)
The OptionalAttribute Attribute
356(1)
Optional Parameter Order
356(1)
Named Parameters
356(4)
Named and Optional Parameter Guidelines
360(1)
Extension Methods
360(4)
Lambda Expressions
364(8)
Anonymous Methods Recap
364(1)
Lambda Expressions for Anonymous Methods
365(3)
Lambda Expression Parameters
368(1)
Lambda Expression Statement Bodies
368(1)
Lambda Expressions as Delegates and Expression Trees
369(1)
Lambda Expressions and Collections
370(2)
Caller Information Attributes
372(3)
Summary
375(6)
PART II WINDOWS PROGRAMMING
Chapter 15 Basic Desktop Programming
381(44)
XAML
382(2)
Separation of Concerns
382(1)
XAML in Action
383(1)
Namespaces
383(1)
Code-Behind Files
384(1)
The Playground
384(9)
WPF Controls
385(1)
Properties
386(1)
Dependency Properties
387(1)
Attached Properties
388(1)
Events
388(1)
Handling Events
389(1)
Routed Events
390(1)
Routed Commands
390(2)
Control Types
392(1)
Control Layout
393(8)
Stack Order
393(1)
Alignment, Margins, Padding, and Dimensions
393(1)
Border
394(1)
Canvas
394(1)
DockPanel
395(2)
StackPanel
397(1)
WrapPanel
398(1)
Grid
398(3)
The Game Client
401(20)
The About Window
401(1)
Designing the User Interface
401(1)
The Image Control
401(1)
The Label Control
402(1)
The TextBlock Control
402(1)
The Button Control
402(3)
The Options Window
405(1)
The TextBox Control
406(1)
The CheckBox Control
406(1)
The RadioButton Control
407(1)
The ComboBox Control
408(1)
The TabControl
409(2)
Handling Events in the Options Window
411(2)
Data Binding
413(1)
The DataContext
414(1)
Binding to Local Objects
414(1)
Static Binding to External Objects
414(1)
Dynamic Binding to External Objects
415(3)
Starting a Game
418(1)
The ListBox Control
418(3)
Summary
421(4)
Chapter 16 Advanced Desktop Programming
425(44)
The Main Window
425(4)
The Menu Control
426(1)
Routed Commands with Menus
426(3)
Creating and Styling Controls
429(9)
Styles
430(1)
Templates
430(4)
Value Converters
434(1)
The IValueConverter Interface
434(1)
ValueConversionAttribute
434(1)
Triggers
435(1)
Animations
436(1)
Timelines without Key Frames
436(1)
Timelines with Key Frames
437(1)
WPF User Controls
438(9)
Implementing Dependency Properties
439(8)
Putting It All Together
447(19)
Refactoring the Domain Model
447(4)
The View Models
451(8)
Completing the Game
459(7)
Summary
466(3)
Chapter 17 Windows Store Apps
469(44)
Getting Started
469(2)
Windows 8 Developer License
470(1)
How to Get the License
470(1)
Windows Store Apps versus Desktop Applications
471(1)
Developing Windows Store Apps
472(4)
View Modes
472(1)
Full-Screen Mode
473(1)
Snapped Mode
473(1)
Fill Mode
473(1)
Screen Orientation
473(1)
The Missing Caption Bar
473(1)
Menus and Toolbars
473(1)
The App Bar
474(1)
Charms
475(1)
Tiles and Badges
476(1)
App Lifetime
476(1)
Lock Screen Apps
476(1)
App Development
476(9)
WPF and Windows Store App XAML Differences
476(1)
Namespace Changes
477(1)
Effects
477(1)
Opacity Mask
477(1)
Style Triggers
477(1)
Commands
478(1)
Templates and Pages
478(1)
Blank Page
478(1)
Basic Page
478(1)
Grouped Items and Group Details Pages
478(1)
Item Details Page
479(1)
Items and Split Pages
479(1)
Sandboxed Apps
479(1)
Disk Access
479(1)
Serialization, Streams, and Async Programming
480(3)
Navigation Between Pages
483(2)
Managing State
485(1)
Converting KarliCards, Part 1
485(14)
Creating the CardLib Project
486(3)
Converting the View Models
489(4)
Visual Changes
493(1)
Drop Shadow and Opacity Masks
493(1)
Style Triggers
493(1)
Converting User Controls
493(6)
Common Elements of Windows Store Apps
499(5)
The AppBar Control
500(1)
The Settings Panel
501(2)
Tiles, Badges, and Splash Screens
503(1)
Converting KarliCards, Part 2
504(5)
The Windows Store
509(1)
Checking the Store Requirements
509(1)
Summary
510(3)
Chapter 18 Deploying Desktop Applications
513(22)
Deployment Overview
514(1)
ClickOnce Deployment
514(10)
Implementing ClickOnce Deployment
515(7)
Installing the Application with ClickOnce
522(2)
Creating and Using Updates of the Application
524(1)
InstallShield Limited Edition
524(6)
The Project Assistant
524(1)
Step 1 Application Information
525(1)
Step 2 Installation Requirements
525(1)
Step 3 Installation Architecture
526(1)
Step 4 Application Files
526(1)
Step 5 Application Shortcuts
527(1)
Step 6 Application Registry
528(1)
Step 7 Installation Interview
528(2)
Summary
530(5)
PART III WEB PROGRAMMING
Chapter 19 ASP.NET Web Programming
535(56)
Overview of Web Applications
536(1)
ASP.NET Runtime
536(1)
Creating a Simple Page
536(8)
Server Controls
544(1)
ASP.NET Postback
545(5)
ASP.NET AJAX Postback
550(3)
Input Validation
553(4)
State Management
557(5)
Client-Side State Management
558(1)
View State
558(1)
Cookie
559(1)
Server-Side State Management
560(1)
Session
560(1)
Application
561(1)
Cache
562(1)
Styles
562(4)
Master Pages
566(5)
Site Navigation
571(2)
Authentication and Authorization
573(7)
Authentication Configuration
574(3)
Using Security Controls
577(3)
Reading from and Writing to a SQL Server Database
580(9)
Summary
589(2)
Chapter 20 Deploying Web Applications
591(14)
Internet Information Services
591(1)
IIS Configuration
592(2)
Copying a Website
594(3)
Publishing a Web Application
597(3)
Summary
600(5)
PART IV DATA ACCESS
Chapter 21 File System Data
605(34)
Streams
605(1)
The Classes for Input and Output
606(22)
The File and Directory Classes
607(1)
The FileInfo Class
608(2)
The DirectoryInfo Class
610(1)
Path Names and Relative Paths
611(1)
The FileStream Object
611(1)
File Position
612(1)
Reading Data
613(2)
Writing Data
615(2)
The StreamWriter Object
617(1)
The StreamReader Object
618(2)
Reading Data
620(1)
Delimited Files
621(4)
Asynchronous File Access
625(1)
Reading and Writing Compressed Files
625(3)
Serialized Objects
628(4)
Monitoring the File System
632(4)
Summary
636(3)
Chapter 22 XML
639(24)
XML Documents
640(7)
XML Elements
640(1)
Attributes
641(1)
The XML Declaration
641(1)
The Structure of an XML Document
642(1)
XML Namespaces
642(1)
Well-Formed and Valid XML
643(1)
Validating XML Documents
644(1)
Schemas
644(1)
The XSD dialog box shown in the XmlDocument Class
645(2)
Using XML in Your Application
647(14)
XML Document Object Model
647(1)
The XmlDocument Class
648(1)
The XmlElement Class
648(4)
Changing the Values of Nodes
652(4)
Selecting Nodes
656(1)
XPath
657(4)
Summary
661(2)
Chapter 23 Introduction to Linq
663(36)
First LINQ Query
664(3)
Declaring a Variable for Results Using the var Keyword
665(1)
Specifying the Data Source: from Clause
666(1)
Specify Condition: where Clause
666(1)
Selecting Items: select Clause
666(1)
Finishing Up: Using the foreach Loop
667(1)
Deferred Query Execution
667(1)
Using the LINQ Method Syntax
667(2)
LINQ Extension Methods
667(1)
Query Syntax versus Method Syntax
668(1)
Ordering Query Results
669(1)
Understanding the orderby Clause
670(1)
Ordering Using Method Syntax
671(1)
Querying a Large Data Set
672(2)
Using Aggregate Operators
674(4)
Querying Complex Objects
678(3)
Projection: Creating New Objects in Queries
681(1)
Projection: Method Syntax
682(1)
Using the Select Distinct Query
683(1)
Using the Any and All Methods
684(1)
Ordering by Multiple Levels
685(2)
Multi-Level Ordering Method Syntax: ThenBy
687(1)
Using Group Queries
687(2)
Using Take and Skip
689(2)
Using First and FirstOrDefault
691(1)
Using the LINQ Set Operators
692(2)
Using Joins
694(2)
Summary
696(3)
Chapter 24 Applying Linq
699(28)
LINQ Varieties
699(1)
Using LINQ with Databases
700(1)
Installing SQL Server and the Northwind Sample Data
700(1)
Installing SQL Server Express
701(1)
Installing the Northwind Sample Database
701(1)
First LINQ to Database Query
701(3)
Navigating Database Relationships
704(2)
Using LINQ with XML
706(1)
LINQ to XML Functional Constructors
707(3)
Constructing XML Element Text with Strings
710(1)
Saving and Loading an XML Document
710(3)
Loading XML from a String
712(1)
Contents of a Saved XML Document
713(1)
Working with XML Fragments
713(2)
Generating XML from Databases
715(2)
How to Query an XML Document
717(1)
Using LINQ to XML Query Members
718(5)
Elements()
718(1)
Descendants()
719(2)
Attributes()
721(2)
Summary
723(4)
PART V ADDITIONAL TECHNIQUES
Chapter 25 Windows Communication Foundation
727(32)
What Is WCF?
728(1)
WCF Concepts
728(5)
WCF Communication Protocols
729(1)
Addresses, Endpoints, and Bindings
729(2)
Contracts
731(1)
Message Patterns
732(1)
Behaviors
732(1)
Hosting
732(1)
WCF Programming
733(23)
The WCF Test Client
740(2)
Defining WCF Service Contracts
742(1)
Data Contracts
743(1)
Service Contracts
743(1)
Operation Contracts
744(1)
Message Contracts
745(1)
Fault Contracts
745(5)
Self-Hosted WCF Services
750(6)
Summary
756(3)
Chapter 26 Windows Workflow Foundation
759(20)
Hello World
759(2)
Workflows and Activities
761(2)
If Activity
761(1)
While Activity
762(1)
Sequence Activity
762(1)
Arguments and Variables
763(4)
Custom Activities
767(9)
Workflow Extensions
769(4)
Activity Validation
773(1)
Activity Designers
774(2)
Summary
776(3)
Appendix A Exercise Solutions 779(48)
Index 827
Karli Watson is an author and IT contractor in London.

Jacob Vibe Hammer is a software architect and developer at Kamstrup A/S, Denmark. He has coauthored several books.

Jon D. Reid is the director of systems engineering at Indigo Biosystems, Inc.



Morgan Skinner joined Microsoft in 2001.

Daniel Kemper is a software engineer specializing in reporting and rich client technologies.

Christian Nagel is a Microsoft Regional Director and Microsoft MVP, an associate of thinktecture, and founder of CN innovation.

Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.