C # advanced programming with. Net 4: 5th

Source: Internet
Author: User
Tags microsoft c visual studio 2010

C # And. Net 4 advanced program design: Version 5th

Basic Information

Original Title:Pro C #2010 and the. NET 4 platform 5 edition

Original Publishing House: apress

Author:(US) Andrew troelsen

Translator: Zhu Xiaoxiao Yao Qilin Zhang dalei Wang shaokui fan Rui

Series Name:Turing programming Series

 Press: People's post and telecommunications Press

ISBN:9787115250322

 Mounting time:

Published on: February 1, April 2011

Http://product.china-pub.com/197981


Introduction

C # And. net 4 advanced programming: Version 5th is a well-known book in the C # field. It provides an in-depth and comprehensive description of the C # programming language and.. NET platform core, and analyzes related concepts with a large number of examples. The book introduces the various language structures of C ,. NET 2.0 class, core API, common intermediate language (CER), dynamic assembly, Asp.net extension, and so on. net 3.0 ,. net 3.5 and. net 4, including the functions of WPF, WCF, and WF. In addition, we also introduced the latest C #2010 programming language, DLR, TPL, and LINQ programming technology, COM and.. NET and platform-independent.. NET development.
C # And. Net 4 advanced programming: Version 5th was compiled by Microsoft C # MVP Andrew troelsen. It has been revised several times and is suitable for all levels of. NET developers. C # And. Net 4 advanced program design: Version 5th Online reading of e-books Directory 


Part 1 C # And. NET platform
Chapter 2. Net 2
World 2 before. NET 1.1
1.2. Net solution 5
1.3. NET platform construction blocks (CLR, CTS, and CLS) Introduction 5
1.4 other programming languages supporting. Net 7
1.5. Net Assembly Overview 9
1.6 CTS 14
1.7 CLS 17
1.8 CLR 18
1.9 differences in assembly/namespace/type 19
1.10 use ildasm.exe to explore Assembly 24
1.11 use reflector to view the Assembly 26
1.12 deploy the. NET Runtime Library 27
1.13. NET platform independence 27
1.14 summary 28
Chapter 1 build C # application 30
2.1. NET Framework 4 SDK role 30
2.2 Use csc.exe to build C # applications 31. 2.3 use Notepad ++ to build. Net Applications 36
2.4 use sharpdevelop to build. Net Applications 36
2.5 use Visual C #2010 express to build. NET applications 38
2.6 Use Visual Studio 2010 to build. Net Applications 40
2.7 summary 50
Part 2 C # core programming structure
Chapter C # core programming structure I 52
3.1 A simple C # program 52
3.2 interesting question: other members of the System. Environment class 57
3.3 system. Console class 58
3.4 system data types and C # simplified symbols 62
3.5 use string data 70
3.6 narrow and wide data type conversion 76
3.7 implicit type local variable 81
3.8 C # Iterative Structure 84
3.9 condition structure and relationship/equal operator 86
3.10 summary 89
Chapter 2 C # core programming structure ⅱ 90
4.1 Method and parameter modifier 90
4.2 Array Operation 99 in C #
4.3 Enumeration type 105
4.4 structure type 109
4.5 value type and reference type 112
4.6 C # null type 118
4.7 conclusion 121
Chapter 2 define encapsulated class types 5th
5.1 C # class type 122
5.2 constructor 125
5.3 The role of this keyword 128
5.4 static keyword 133
5.5 define the pillar of OOP 139
5.6 C # access modifier 142
5.7 first pillar: C # encapsulation service 144
5.8 automatic attribute 154
5.9 object initializer syntax 157
5.10 constant data 160
5.11 division type 162
5.12 conclusion 163
Chapter 2 Inheritance and polymorphism 6th
6.1 basic Inheritance Mechanism 164
6.2 review Visual Studio class relationship diagram 168
6.3 The second pillar of OOP: Inheriting 169
6.4 inclusion/delegate programming 174
6.5 The third pillar of OOP: C # polymorphism support 176
6.6 conversion rules for base classes/Derived classes 187
6.7 super parent class: system. Object 189
6.8 conclusion 195
Chapter 2 structured exception handling 7th
7.1 errors, bugs, and exceptions 196
7.2. Net Exception Handling 197
7.3 simplest example 199
7.4 configuration exception status 202
7.5 system-level exception (system. System-exception) 206
7.6 application-level exception (system. applica-tionexception) 207
7.7 handle multiple exceptions 210
7.8 what exceptions are triggered? 215
7.9 unhandled exceptions: 215
7.10 debug unprocessed exceptions using Visual Studio 216
7.11 exception in damage status 217
7.12 conclusion 218
Chapter 2 object lifecycle 8th
8.1 categories, objects, and references 219
8.2 basic of object lifecycle 220
8.3 role of application root 223
8.4 object generation 224
8.5. NET 1.0 to. Net 3.5 concurrent garbage collection 225
8.6. Net 4 Background garbage collection 225
8.7 system. GC type 225
8.8 construct an endable object 229
8.9 construct disposal objects 231
8.10 build final and disposal types 234
8.11 delayed Object Instantiation 237
8.12 conclusion 240
Part 3 advanced C # programming structure
Chapter 4 interface 9th
9.1 interface type 242
9.2 custom interface 245
9.3 implement interface 247
9.4 call interface member at the object level 248
9.5 interface as parameter 250
9.6 interface as return value 252
9.7 interface type array 253
9.8 use Visual Studio 2010 to implement interface 253
9.9 resolve naming conflicts through explicit interfaces 254
9.10 design the interface hierarchy 257
9.11 construct enumerable types (ienumerable and ienumerator) 260
9.12 construct a cloned object (icloneable) 265
9.13 build comparable objects (icomparable) 269
9.14 conclusion 273
Chapter 2 Generic Model 10th
10.1 non-generic set 274
10.2 functions of generic parameters 281
10.3 system. Collections. Generic namespace 285
10.4 create a custom generic Method 292
10.5 create a custom generic structure and class 294
10.6 type parameter constraints 297
10.7 conclusion 300
Chapter 2 delegation, events, and Lambda 11th
11.1. Net delegate type 301
11.2 define the delegate type in C #302
11.3 system. multicastdelegate and system. Delegate base class 304
11.4 simplest delegate example 305
11.5 send object status notification by Delegate 307
11.6 method group conversion syntax 313
11.7 Commission change 314
11.8 generic delegation 316
11.9 C # event 318
11.10 C # anonymous method 325
11.11 Lambda expression 328
11.12 conclusion 333
Chapter 2 advanced C # language features 12th
12.1 indexer method 335
12.2 operator overload 339
12.3 custom type conversion 347
12.4 expansion method 352
12.5 division method
12.6 anonymous type 362
12.7 pointer type 367
12.8 conclusion 373
Chapter 2 LINQ to object 13th
13.1 special programming structure of LINQ 374
13.2 functions of LINQ 377
13.3 apply the LINQ query to the original array 379
13.4 return the result of the LINQ query 385
13.5 apply a LINQ query to a collection object 387
13.6 C # LINQ query operator 389
13.7 The internal representation of the LINQ query statement is 396
13.8 conclusion 400
Part 4 Programming with. Net assembly
Chapter 2. Net Assembly entry 14th
14.1 custom namespace 402
14.2. Net Assembly role 407
14.3. Net Assembly format 409
14.4 build and use a single-file assembly 412
14.5 build and use multi-file assembly 421
14.6 private assembly 423
14.7 shared Assembly 427
14.8 use shared Assembly 433
14.9 configure shared Assembly 435
14.10 issuer policy Assembly 439
14.11 [codebase] element 440
14.12 system. Configuration namespace 441
14.13 conclusion 442
Chapter 2 type reflection, late binding, and feature-based programming 15th
15.1 necessity of Type metadata 443
15.2 reflection 447
15.3 build a custom metadata viewer 450
15.4 dynamically load Assembly 454
15.5 reflection shared Assembly 457
15.6 late binding 458
15.7. NET features 461
15.8 build custom features 465
15.9 assembly-level (and module-level) features 467
15.10 use the early binding Reflection Feature 469
15.11 use the late binding Reflection Feature 470
15.12 background of reflection, late binding, and custom features 471
15.13 build scalable applications 472
15.14 conclusion 477
Chapter 2 process, application domain, and object context 16th
16.1 roles of Windows processes 478
16.2. NET platform interaction with processes 480
16.3. NET application domain 488
16.4 interaction with the default application domain 489
16.5 create a new application domain 492
16.6 object context boundary 495
16.7 process, application domain, and context summary 498
16.8 conclusion 499
Chapter 2 Role of the Server Load balancer and dynamic assembly 17th
17.1 reasons for learning the pencil syntax 500
17.2 pencil command, features, and operation code 501
17.3 inbound and outbound Stack
17.4 positive and reverse engineering 504
17.5 pencil commands and features 510
17.6. net base class library, C #, and pencil data type ing 515
17.7 define the type member 516 in the pencil
17.8 analyze the pencil operation code 518
17.9 build a. Net assembly using the pencil 522
17.10 dynamic assembly 526
17.11 conclusion 534
Chapter 2 dynamic type and Language Runtime 18th
18.1 role of dynamic keywords 535
18.2 role of DLR 540
18.3 simplify later binding and call using dynamic types 542
18.4 simplify com interoperability with Dynamic Data 544
18.5 use the features of C #2010 for com interoperability 548
18.6 conclusion 552
Part 5. net base library
Chapter 1 multi-threaded application construction 19th
19.1 relationship among processes, application domains, context, and threads 554
19.2. Net delegate brief review 556
19.3 asynchronous nature of delegation 557
19.4 asynchronous call method 559
19.5 system. Threading namespace 564
19.6 system. Threading. Thread class 564
19.7 create a thread in programming mode 567
19.8 concurrency problems 572
19.9 use timer callback for programming 578
19.10 CLR thread pool 579
19.11 parallel programming on the. NET platform 581
19.12 parallel LINQ query (Plinq) 588
19.13 conclusion 590
Chapter 4 file input/output and Object serialization 20th
20.1 study system. Io namespace 591
20.2 directory (Info) and file (Info) types 592
20.3 use directoryinfo type 593
20.4 use directory type 596
20.5 use driveinfo class type 597
20.6 use fileinfo class 598
20.7 use file type 601
20.8 stream abstract class 603
20.9 use streamwriter and streamreader 605
20.10 use stringwriter and stringreader 608
20.11 binarywriter and binary-reader 609
20.12 "Observe" the file programmatically 610
20.13 Object serialization 612
20.14 serialization configuration object 614
20.15 select the serialized formatter 616
20.16 use binaryformatter to serialize an object 618
20.17 use soapformatter to serialize an object 620
20.18 use xmlserializer to serialize an object 621
20.19 serialization object set 623
20.20 custom soap/binary serialization process 624
20.21 conclusion 628
Chapter 2 ado.net: Connection layer 21st
21.1 macro definition of ado.net 630
21.2 ado.net data provider 632
21.3 other ado.net namespaces 634
21.4 system. Data namespace type 635
21.5 abstract data provider using interfaces 639
21.6 create an autolot database 641
21.7 ado.net data provider factory model 645
21.8 ado.net connection layer 650
21.9 use a data reader 654
21.10 construct reusable Data Access Database 656
21.11 create console UI frontend 664
21.12 database transactions 669
21.13 conclusion 673
Chapter 2 ado.net II: disconnect layer 22nd
22.1 ado.net disconnect layer 674
22.2 functions of dataset 675
22.3 use datacolumn 677
22.4 use datarow 679
22.5 use datatable 682
22.6 bind the datatable object to user interface 687
22.7 use data adapter 695
22.8 Add the disconnection function to autolotdal. dll 698
22.9 multi-Table DataSet object and Data Relationship 701
22.10 Windows Forms Database Designer tool 706
22.11 isolate strong database code from the class library 713
22.12 LINQ to dataset 717
22.13 conclusion 722
Chapter 2 ado.net 3: Entity Framework 23rd
23.1 role of Entity Framework 723
23.2 create and analyze EDM 730
23.3 programming conceptual models 739
23.4 autolotdal version 4.0, added to entity 744
23.5 bind data entities to Windows Forms GUI 748
23.6 conclusion 752
Chapter 2 Introduction to LINQ to XML 24th
24.1 story of two XML APIs 753
24.2 system. xml. LINQ namespace member 756
24.3 use xelement and xdocument 759
24.4 operating XML documents in memory 762
24.5 conclusion 766
Chapter 2 WCF 25th
25.1 various distributed computing APIs 767
25.2 role of WCF 772
25.3 WCF core assembly 774
25.4 Visual Studio WCF Project template 775
25.5 basic components of a WCF application 776
25.6 ABC 777 of WCF
25.7 build a WCF Service 781
25.8 host the WCF Service 784
25.9 build a WCF client application 791
25.10 simplify configuration with WCF 4.0 795
25.11 use the WCF Service Library Project template 800
25.12 use Windows Services to host the WCF Service 803
25.13 call the service 807 asynchronously from the client
25.14 define a WCF data contract 809
25.15 conclusion 813
Chapter 2 Introduction to Windows workflow foundation4.0 26th
26.1 define business process 814
26.2 construct a simple workflow 815
26.3 WF 4.0 runtime 818
26.4 check activity 4.0 in WF 823
26.5 construct a flowchart workflow 825
26.6 isolate a workflow with a dedicated database 833
26.7 use workflow library 840
26.8 conclusion 842
Part 6 using WPF to build a desktop user interface chapter 2 WPF and XAML 27th
27.1 motivation behind WPF 844
27.2 various forms of WPF applications 846
27.3 WPF Assembly 850
27.4 create a WPF application that does not use XAML 856
27.5 build a WPF application using XAML only 863
27.6 convert tags to. Net Assembly 867
27.7 wpf xaml syntax 871
27.8 build a WPF application using a hidden code file 879
27.9 using Visual Studio 2010 to build a WPF Application 881
27.10 conclusion 889
Chapter 2 programming with WPF controls 28th
28.1 WPF core control overview 890
28.2 use panel control content layout 894
28.3 build a window framework using nested panels 903
28.4 WPF control command 907
28.5 use expression blend to build the WPF User Interface 912
28.6 build the ink API tab 919
28.7 documents API 928
28.8 build Documents tab 929
28.9 WPF data binding model 934
28.10 conclusion 941
Chapter 2 WPF graphics rendering service 29th
29.1 understand the graphic rendering service of WPF 942
29.2 display graph data with shape 943
29.3 WPF paint brush and paint brush 952
29.4 graph conversion 955
29.5 use expression blend to process shape 958
29.6 use plotting and ry to present Graphical Data 962
29.7 use expression design to generate complex vector graphics 965
29.8 use the visualization layer to present graphic data 967
29.9 conclusion 972
Chapter 2 WPF resources, animations, and styles 30th
30.1 understand the WPF Resource System 973
30.2 use object (logical) resources 978
30.3 understand WPF animation service 988
30.4 create an animation with XAML 992
30.5 functions of the WPF style 994
30.6 use expression blend to generate a style 1001
30.7 conclusion 1003
Chapter 2 WPF control templates and user controls 31st
31.1 roles of dependency properties 1004
31.2 build custom dependency attributes 1008
31.3 route event 1013
31.4 logical tree, visual tree, and default template 1016
31.5 build a custom control template in Visual Studio 2010 1022
31.6 use blend to build a custom usercontrol 1028
31.7 create a WPF Application jackpot deluxe 1035
31.8 conclusion 1043
Part 7 use Asp.net to build Web Applications
Chapter 2 Building an Asp.net web page 32nd
32.1 The role of HTTP 1046
32.2 web applications and Web Services 1047
32.3 role of HTML 1048
32.4 role of client scripts 1053
32.5 send back to Web Server 1054
32.6 Asp.net API features 1055
32.7 construct an Asp.net webpage for a single file 1058
32.8 use a code file to build an Asp.net web page 1066
32.9 Asp.net web site and Asp.net web application 1070
32.10 Asp.net website directory structure 1072
32.11 page type inheritance chain 1073
32.12 interaction with incoming HTTP requests 1074
32.13 interaction with the output HTTP Response 1077
32.14 Asp.net web page lifecycle 1078
32.15 roles of the web. config file 1081
32.16 conclusion 1082
Chapter 2 Asp.net Web controls, master pages, and themes 33rd
33.1 nature of Web controls 1083
33.2 control and webcontrol base classes 1085
33.3 Asp.net Web controls category 1089
33.4 construct Asp.net Automotive website 1091
33.5 verify the role of the control 1104
33.6 topic 1110
33.7 conclusion 1114
Chapter 2 Asp.net Status Management Technology 34th
34.1 status problems 1115
34.2 Asp.net Status Management Technology 1117
34.3 role of Asp.net view status 1117
34.4 role of the global. asax file 1120
34.5 differences between application status and session Status 1123
34.6 use applications to cache 1127
34.7 maintain session data 1131
34.8 cookie 1134
34.9 [sessionstate] element function 1136
34.10 Asp.net user configuration API 1137
34.11 conclusion 1143
Appendix to Part 8
Appendix A Windows Forms programming 1146
A.1 Windows Forms namespace 1146
A.2 create a simple Windows Forms Program 1147
A.3 Visual Studio Windows Forms project template 1152
A.4 analyze form 1157
A.5 respond to mouse activity 1163
A.6 Design dialog 1166
A.7 graphic data is presented through GDI + 1171
A.8 create a complete Windows Forms Application 1175
A.9 summary 1182
Appendix B uses mono for platform-independent. NET development 1183
B .1. NET platform independence 1183
B .2 obtain and install mono 1186
B .3 mono development language 1188
B .4 compatible with Microsoft's mono development tool 1189
B .5 use mono to create a. NET application 1190
B .6 who is using mono 1196
B .7 recommended: 1196
B .8 summary 1197

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.