Home Page Icon
Home Page
Table of Contents for
Contents
Close
Contents
by Jon D. Reid, Jacob Vibe Hammer, Benjamin Perkins
Beginning C# 6.0 Programming with Visual Studio 2015
Title Page
Introduction
Who This Book Is For
What This Book Covers
How This Book Is Structured
What You Need to Use This Book
Conventions
Source Code
Errata
p2p.wrox.com
Part I: The OOP Language
Chapter 1: Introducing C#
What Is the .NET Framework?
What Is C#?
Visual Studio 2015
Chapter 2: Writing a C# Program
The Visual Studio 2015 Development Environment
Console Applications
Desktop Applications
Chapter 3: Variables and Expressions
Basic C# Syntax
Basic C# Console Application Structure
Variables
Expressions
Chapter 4: Flow Control
Boolean Logic
Branching
Looping
Chapter 5: More about Variables
Type Conversion
Complex Variable Types
String Manipulation
Chapter 6: Functions
Defining and Using Functions
Variable Scope
The Main() Function
Struct Functions
Overloading Functions
Using Delegates
Chapter 7: Debugging and Error Handling
Debugging in Visual Studio
Error Handling
Chapter 8: Introduction to Object-Oriented Programming
What Is Object-Oriented Programming?
OOP Techniques
OOP in Desktop Applications
Chapter 9: Defining Classes
Class Definitions in C#
System.Object
Constructors and Destructors
OOP Tools in Visual Studio
Class Library Projects
Interfaces Versus Abstract Classes
Struct Types
Shallow Copying Versus Deep Copying
Chapter 10: Defining Class Members
Member Definitions
Additional Class Member Topics
Interface Implementation
Partial Class Definitions
Partial Method Definitions
Example Application
The Call Hierarchy Window
Chapter 11: Collections, Comparisons, and Conversions
Collections
Comparisons
Conversions
Chapter 12: Generics
What Are Generics?
Using Generics
Defining Generic Types
Variance
Chapter 13: Additional C# Techniques
The : : Operator and the Global Namespace Qualifier
Custom Exceptions
Events
Expanding and Using CardLib
Attributes
Initializers
Type Inference
Anonymous Types
Dynamic Lookup
Advanced Method Parameters
Lambda Expressions
Part II: Windows Programming
Chapter 14: Basic Desktop Programming
XAML
The Playground
Control Layout
The Game Client
Chapter 15: Advanced Desktop Programming
Creating and Styling Controls
WPF User Controls
Putting It All Together
Part III: Cloud Programming
Chapter 16: Basic Cloud Programming
The Cloud, Cloud Computing, and the Cloud Optimized Stack
Cloud Patterns and Best Practices
Using Microsoft Azure C# Libraries to Create a Storage Container
Creating an ASP.NET 4.6 Web Site that Uses the Storage Container
How It Works
Chapter 17: Advanced Cloud Programing and Deployment
Creating an ASP.NET Web API
Deploying and Consuming an ASP.NET Web API on Microsoft Azure
Scaling an ASP.NET Web API on Microsoft Azure
Part IV: Data Access
Chapter 18: Files
File Classes for Input and Output
Streams
Monitoring the File System
Chapter 19: XML and JSON
JSON Basics
XML Schemas
Converting XML to JSON
Chapter 20: LINQ
LINQ to XML
LINQ Query Syntax
LINQ Method Syntax
Ordering Query Results
Understanding the orderby Clause
Querying a Large Data Set
Using Aggregate Operators
Using the Select Distinct Query
Ordering by Multiple Levels
Using Group Queries
Using Joins
Chapter 21: Databases
Using Databases
Installing SQL Server Express
Entity Framework
A Code First Database
But Where Is My Database?
Navigating Database Relationships
Handling Migrations
Creating and Querying XML from an Existing Database
Part V: Additional Techniques
Chapter 22: Windows Communication Foundation
What Is WCF?
WCF Concepts
WCF Programming
Chapter 23: Universal Apps
Getting Started
Universal Apps
App Concepts and Design
App Development
Common Elements of Windows Store Apps
The Windows Store
Appendix: Exercise Solutions
Chapter 4 Solutions
Chapter 5 Solutions
Chapter 6 Solutions
Chapter 7 Solutions
Chapter 8 Solutions
Chapter 9 Solutions
Chapter 10 Solutions
Chapter 11 Solutions
Chapter 12 Solutions
Chapter 13 Solutions
Chapter 14 Solutions
Chapter 15 Solutions
Chapter 16 Solutions
Chapter 17 Solutions
Chapter 18 Solutions
Chapter 19 Solutions
Chapter 20 Solutions
Chapter 21 Solutions
Chapter 22 Solutions
Chapter 23 Solutions
End User License Agreement
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Introduction
Table of Contents
Title Page
Introduction
Who This Book Is For
What This Book Covers
How This Book Is Structured
What You Need to Use This Book
Conventions
Source Code
Errata
p2p.wrox.com
Part I: The OOP Language
Chapter 1: Introducing C#
What Is the .NET Framework?
What Is C#?
Visual Studio 2015
Chapter 2: Writing a C# Program
The Visual Studio 2015 Development Environment
Console Applications
Desktop Applications
Chapter 3: Variables and Expressions
Basic C# Syntax
Basic C# Console Application Structure
Variables
Expressions
Chapter 4: Flow Control
Boolean Logic
Branching
Looping
Chapter 5: More about Variables
Type Conversion
Complex Variable Types
String Manipulation
Chapter 6: Functions
Defining and Using Functions
Variable Scope
The Main() Function
Struct Functions
Overloading Functions
Using Delegates
Chapter 7: Debugging and Error Handling
Debugging in Visual Studio
Error Handling
Chapter 8: Introduction to Object-Oriented Programming
What Is Object-Oriented Programming?
OOP Techniques
OOP in Desktop Applications
Chapter 9: Defining Classes
Class Definitions in C#
System.Object
Constructors and Destructors
OOP Tools in Visual Studio
Class Library Projects
Interfaces Versus Abstract Classes
Struct Types
Shallow Copying Versus Deep Copying
Chapter 10: Defining Class Members
Member Definitions
Additional Class Member Topics
Interface Implementation
Partial Class Definitions
Partial Method Definitions
Example Application
The Call Hierarchy Window
Chapter 11: Collections, Comparisons, and Conversions
Collections
Comparisons
Conversions
Chapter 12: Generics
What Are Generics?
Using Generics
Defining Generic Types
Variance
Chapter 13: Additional C# Techniques
The : : Operator and the Global Namespace Qualifier
Custom Exceptions
Events
Expanding and Using CardLib
Attributes
Initializers
Type Inference
Anonymous Types
Dynamic Lookup
Advanced Method Parameters
Lambda Expressions
Part II: Windows Programming
Chapter 14: Basic Desktop Programming
XAML
The Playground
Control Layout
The Game Client
Chapter 15: Advanced Desktop Programming
Creating and Styling Controls
WPF User Controls
Putting It All Together
Part III: Cloud Programming
Chapter 16: Basic Cloud Programming
The Cloud, Cloud Computing, and the Cloud Optimized Stack
Cloud Patterns and Best Practices
Using Microsoft Azure C# Libraries to Create a Storage Container
Creating an ASP.NET 4.6 Web Site that Uses the Storage Container
How It Works
Chapter 17: Advanced Cloud Programing and Deployment
Creating an ASP.NET Web API
Deploying and Consuming an ASP.NET Web API on Microsoft Azure
Scaling an ASP.NET Web API on Microsoft Azure
Part IV: Data Access
Chapter 18: Files
File Classes for Input and Output
Streams
Monitoring the File System
Chapter 19: XML and JSON
JSON Basics
XML Schemas
Converting XML to JSON
Chapter 20: LINQ
LINQ to XML
LINQ Query Syntax
LINQ Method Syntax
Ordering Query Results
Understanding the orderby Clause
Querying a Large Data Set
Using Aggregate Operators
Using the Select Distinct Query
Ordering by Multiple Levels
Using Group Queries
Using Joins
Chapter 21: Databases
Using Databases
Installing SQL Server Express
Entity Framework
A Code First Database
But Where Is My Database?
Navigating Database Relationships
Handling Migrations
Creating and Querying XML from an Existing Database
Part V: Additional Techniques
Chapter 22: Windows Communication Foundation
What Is WCF?
WCF Concepts
WCF Programming
Chapter 23: Universal Apps
Getting Started
Universal Apps
App Concepts and Design
App Development
Common Elements of Windows Store Apps
The Windows Store
Appendix: Exercise Solutions
Chapter 4 Solutions
Chapter 5 Solutions
Chapter 6 Solutions
Chapter 7 Solutions
Chapter 8 Solutions
Chapter 9 Solutions
Chapter 10 Solutions
Chapter 11 Solutions
Chapter 12 Solutions
Chapter 13 Solutions
Chapter 14 Solutions
Chapter 15 Solutions
Chapter 16 Solutions
Chapter 17 Solutions
Chapter 18 Solutions
Chapter 19 Solutions
Chapter 20 Solutions
Chapter 21 Solutions
Chapter 22 Solutions
Chapter 23 Solutions
End User License Agreement
Pages
v
vi
vii
viii
xix
xx
xxi
xxii
xxiii
xxiv
xxv
xxvi
1
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
559
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
Guide
Table of Contents
Begin Reading
List of Illustrations
Chapter 1: Introducing C#
Figure 1.1
Figure 1.2
Figure 1.3
Figure 1.4
Chapter 2: Writing a C# Program
Figure 2.1
Figure 2.2
Figure 2.3
Figure 2.3
Figure 2.4
Figure 2.5
Figure 2.6
Figure 2.7
Figure 2.8
Figure 2.9
Figure 2.10
Figure 2.11
Figure 2.12
Figure 2.13
Chapter 3: Variables and Expressions
Figure 3.1
Figure 3.2
Figure 3.3
Figure 3.4
Chapter 4: Flow Control
Figure 4.1
Figure 4.2
Figure 4.3
Figure 4.4
Figure 4.5
Figure 4.6
Figure 4.7
Chapter 5: More about Variables
Figure 5.1
Figure 5.2
Figure 5.3
Figure 5.4
Figure 5.5
Figure 5.6
Figure 5.7
Figure 5.8
Figure 5.9
Figure 5.10
Figure 5.11
Figure 5.12
Figure 5.13
Figure 5.14
Chapter 6: Functions
Figure 6.1
Figure 6.2
Figure 6.3
Figure 6.4
Figure 6.5
Figure 6.6
Figure 6.7
Figure 6.8
Figure 6.9
Figure 6.10
Chapter 7: Debugging and Error Handling
Figure 7.1
Figure 7.2
Figure 7.3
Figure 7.4
Figure 7.5
Figure 7.6
Figure 7.7
Figure 7.8
Figure 7.9
Figure 7.10
Figure 7.11
Figure 7.12
Figure 7.13
Figure 7.14
Figure 7.15
Figure 7.16
Figure 7.17
Figure 7.18
Figure 7.19
Figure 7.20
Chapter 8: Introduction to Object-Oriented Programming
Figure 8.1
Figure 8.2
Figure 8.3
Figure 8.4
Figure 8.5
Figure 8.6
Figure 8.7
Figure 8.8
Figure 8.9
Figure 8.10
Figure 8.11
Figure 8.12
Figure 8.13
Figure 8.14
Figure 8.15
Chapter 9: Defining Classes
Figure 9.1
Figure 9.2
Figure 9.3
Figure 9.4
Figure 9.5
Figure 9.6
Figure 9.7
Figure 9.8
Figure 9.9
Figure 9.10
Figure 9.11
Figure 9.12
Figure 9.13
Figure 9.14
Chapter 10: Defining Class Members
Figure 10.1
Figure 10.2
Figure 10.3
Figure 10.4
Figure 10.5
Figure 10.6
Figure 10.7
Figure 10.8
Figure 10.9
Figure 10.10
Figure 10.11
Figure 10.12
Figure 10.13
Figure 10.14
Chapter 11: Collections, Comparisons, and Conversions
Figure 11.1
Figure 11.2
Figure 11.3
Figure 11.4
Figure 11.5
Figure 11.6
Figure 11.7
Figure 11.8
Chapter 12: Generics
Figure 12.1
Figure 12.2
Figure 12.3
Figure 12.4
Figure 12.5
Chapter 13: Additional C# Techniques
Figure 13.1
Figure 13.2
Figure 13.3
Figure 13.4
Figure 13.5
Figure 13.6
Figure 13.7
Figure 13.8
Figure 13.9
Figure 13.10
Figure 13.11
Figure 13.12
Figure 13.13
Figure 13.14
Figure 13.15
Figure 13.16
Figure 13.17
Figure 13.18
Figure 13.19
Figure 13.20
Figure 13.21
Chapter 14: Basic Desktop Programming
Figure 14.1
Figure 14.2
Figure 14.3
Figure 14.4
Figure 14.5
Figure 14.6
Figure 14.7
Figure 14.8
Figure 14.9
Figure 14.10
Figure 14.11
Figure 14.12
Chapter 15: Advanced Desktop Programming
Figure 15.1
Figure 15.2
Figure 15.3
Figure 15.4
Chapter 16: Basic Cloud Programming
Figure 16.1
Figure 16.2
Figure 16.3
Figure 16.4
Figure 16.5
Figure 16.6
Figure 16.7
Figure 16.8
Figure 16.9
Figure 16.10
Figure 16.11
Figure 16.12
Figure 16.13
Figure 16.14
Figure 16.15
Chapter 17: Advanced Cloud Programing and Deployment
Figure 17.1
Figure 17.2
Figure 17.3
Figure 17.2
Figure 17.4
Figure 17.5
Figure 17.6
Figure 17.7
Figure 17.8
Figure 17.9
Figure 17.10
Figure 17.11
Figure 17.12
Figure 17.13
Chapter 18: Files
Figure 18.1
Figure 18.2
Figure 18.3
Figure 18.4
Figure 18.5
Figure 18.6
Figure 18.7
Figure 18.8
Chapter 19: XML and JSON
Figure 19.1
Figure 19.2
Figure 19.3
Figure 19.4
Figure 19.5
Figure 19.6
Figure 19.7
Figure 19.8
Chapter 21: Databases
Figure 21.1
Figure 21.2
Figure 21.3
Figure 21.3
Figure 21.5
Figure 21.7
Figure 21.8
Figure 21.9
Figure 21.10
Figure 21.11
Figure 21.12
Figure 21.13
Figure 21.14
Figure 21.15
Figure 21.16
Figure 21.17
Figure 21.18
Figure 21.19
Chapter 22: Windows Communication Foundation
Figure 22.1
Figure 22.2
Figure 22.3
Figure 22.4
Figure 22.5
Chapter 23: Universal Apps
Figure 23.1
Figure 23.2
List of Tables
Chapter 3: Variables and Expressions
Table 3.1 Integer Types
Table 3.2 Floating-point Types
Table 3.3 Text and Boolean Types
Table 3.4 Literal Values
Table 3.5 Escape Sequences for String Literals
Table 3.6 Simple Mathematical Operators
Table 3.7 The String Concatenation Operator
Table 3.8 Increment and Decrement Operators
Table 3.9 Assignment Operators
Table 3.10 Operator Precedence
Chapter 4: Flow Control
Table 4.1 Boolean Comparison Operators
Table 4.2 Conditional Boolean Operators
Table 4.3 Boolean Assignment Operators
Table 4.4 Operator Precedence (Updated)
Chapter 5: More about Variables
Table 5.1 Implicit Numeric Conversions
Chapter 9: Defining Classes
Table 9.1 Access Modifiers for Class Definitions
Table 9.2 Methods of System.Object
Table 9.3 Class View Icons
Table 9.4 Additional Class View Icons
Chapter 12: Generics
Table 12.1 Generic Collection Type
Table 12.2 Sorting with Generic Types
Table 12.3 Generic Type Constraints
Chapter 14: Basic Desktop Programming
Table 14.1 Common Control Events
Table 14.2 Image Control
Table 14.3 TextBox Properties
Table 14.4 CheckBox Properties
Table 14.5 RadioButton Properties
Table 14.6 IsReadOnly and IsEdiTable Combinations
Table 14.7 Other ComboBox Properties
Table 14.8 Interesting ListBox Properties
Table 14.9 The Name Property
Chapter 15: Advanced Desktop Programming
Table 15.1 Displaying MenuItem Properties
Table 15.2 The Timeline Properties
Table 15.3 Properties of the Spline Key Frame Classes
Table 15.4 The Register( ) Method's Parameters
Table 15.5 Overloads for the FrameworkPropertyMetadata Constructor
Table 15.6 Property and Field Names
Table 15.7 Cards in Hand Dependency Properties
Table 15.8 Game Decks Dependency Properties
Chapter 18: Files
Table 18.1 File System Access Classes
Table 18.2 Static Methods of the File Class
Table 18.3 Static Methods of the Directory Class
Table 18.4 FileSystemInfo Properties
Table 18.5 FileInfo Properties
Table 18.6 Properties Unique to the DirectoryInfo Class
Table 18.7 Stream Classes
Table 18.8 FileAccess Enumeration Members
Table 18.9 FileMode Enumeration Members
Table 18.10 FileSystemWatcher Properties
Chapter 19: XML and JSON
Table 19.1 Common DOM Classes
Table 19.2 XmlElement Properties
Table 19.3 Three Ways to Get the Value of a Node
Table 19.4 Methods for Creating Nodes
Table 19.5 Methods for Inserting Nodes
Table 19.6 Methods for Removing Nodes
Table 19.7 Methods for Selecting Nodes
Table 19.8 Common XPath Operations
Chapter 20: LINQ
Table 20.1 Aggregate Operators for Numeric Results
Chapter 22: Windows Communication Foundation
Table 22.1 Binding Types
Table 22.2 NET Default Bindings
Table 22.3 DataContractAttribute Properties
Table 22.4 DataMemberAttribute Properties
Table 22.5 ServiceContractAttribute Properties
Table 22.6 OperationContractAttribute Properties
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset