Details

C# 5.0 Programmer's Reference


C# 5.0 Programmer's Reference


1. Aufl.

von: Rod Stephens

32,99 €

Verlag: Wiley
Format: EPUB
Veröffentl.: 22.04.2014
ISBN/EAN: 9781118847299
Sprache: englisch
Anzahl Seiten: 960

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<b>Stay ahead of the game with this comprehensive guide to the C# programming language</b> <p>Well-known C# expert Rod Stephens gives novice and experienced developers a comprehensive tutorial and reference to standard C#. This new title fully covers the latest C# language standard, C# 5.0, as well as its implementation in the 2013 release of Visual Studio. The author provides exercises and solutions; and his C# Helper website will provide readers and students with ongoing support. This resource is packed with tips, tricks, tutorials, examples, and exercises and is the perfect professional companion for programmers who want to stay ahead of the game.</p> <p>Author Rod Stephens is a well-known programming authority and has written more than 25 programming books covering C#, Java, VB, and other languages. His books have sold more than 150,000 copies in multiple editions. This book's useful exercises and solutions are designed to support training and higher education adoptions.</p> <ul> <li>Learn the full range of C# programming language features</li> <li>Quickly locate information for specific language features in the reference section</li> <li>Familiarize yourself with handling data types, variables, constants, and much more</li> <li>Experiment with editing and debugging code and using LINQ</li> </ul> <p>Beginning through intermediate-level programmers will benefit from the accessible style of <i>C# 5.0 Programmer's Reference</i> and will have access to its comprehensive range of more advanced topics. Additional support and complementary material are provided at the C# Helper website, <a href="http://www.csharphelper.com/">www.csharphelper.com</a>. Stay up-to-date and improve your programming skills with this invaluable resource.</p>
Introduction xxxiii <p><b>Part I: The C# Ec osystem</b></p> <p><b>Chapter 1: The C# Environment 3</b></p> <p>Visual Studio 3</p> <p>The C# Compiler 4</p> <p>The CLR 6</p> <p>The .NET Framework 8</p> <p>Summary 9</p> <p>Exercises 10</p> <p><b>Chapter 2: Writing a First Program 11</b></p> <p>Types of Projects 11</p> <p>Console Applications 14</p> <p>Windows Forms Applications 16</p> <p>WPF Applications 19</p> <p>Windows Store Applications 21</p> <p>Summary 23</p> <p>Exercises 24</p> <p><b>Chapter 3: Program and Code File Structure 27</b></p> <p>Hidden Files 28</p> <p>Preprocessor Directives 31</p> <p>#define and #undef 31</p> <p>#if, #else, #elif, and #endif 33</p> <p>#warning and #error 34</p> <p>#line 34</p> <p>#region and #endregion 35</p> <p>#pragma 36</p> <p>Code File Structure 37</p> <p>The using Directive 38</p> <p>The namespace Statement 40</p> <p>Class Definitions 42</p> <p>Comments 43</p> <p>End-of-line and Multiline Comments 43</p> <p>XML Comments 45</p> <p>Summary 48</p> <p>Exercises 48</p> <p><b>Part II: C# Language Elements</b></p> <p><b>Chapter 4: Data Types, Variables, and Constants 53</b></p> <p>Data Types 54</p> <p>Value Versus Reference Types 57</p> <p>The var Keyword 58</p> <p>Variable Declaration Syntax 59</p> <p>Name 62</p> <p>Attributes 62</p> <p>Accessibility 63</p> <p>Static, Constant, and Volatile Variables 64</p> <p>Initialization 65</p> <p>Classes and Structures 66</p> <p>Arrays 67</p> <p>Collections 68</p> <p>Literal Type Characters 69</p> <p>Data Type Conversion 72</p> <p>Implicit Conversion 73</p> <p>Casting 74</p> <p>Using the as Operator 76</p> <p>Casting Arrays 77</p> <p>Parsing 77</p> <p>Using System.Convert 78</p> <p>Using System.BitConverter 78</p> <p>ToString 79</p> <p>Scope 79</p> <p>Block Scope 79</p> <p>Method Scope 80</p> <p>Class Scope 81</p> <p>Restricting Scope 81</p> <p>Parameter Declarations 82</p> <p>By Value 82</p> <p>By Reference 83</p> <p>For Output 84</p> <p>Unusual Circumstances and Exceptions 85</p> <p>Properties 86</p> <p>Enumerations 88</p> <p>Nullable Types 92</p> <p>Delegates 93</p> <p>Summary 95</p> <p>Exercises 96</p> <p><b>Chapter 5: Operators 99</b></p> <p>Arithmetic Operators 100</p> <p>Result Data Type 100</p> <p>Shift Operators 101</p> <p>Increment and Decrement Operators 101</p> <p>Comparison Operators 102</p> <p>Logical Operators 103</p> <p>Bitwise Operators 105</p> <p>Conditional and Null-coalescing Operators 106</p> <p>Assignment Operators 107</p> <p>Operator Precedence 108</p> <p>The StringBuilder Class 110</p> <p>DateTime and TimeSpan Operations 111</p> <p>Operator Overloading 112</p> <p>Comparison Operators 113</p> <p>Logical Operators 115</p> <p>Type Conversion Operators 115</p> <p>Summary 117</p> <p>Exercises 118</p> <p><b>Chapter 6: Methods 121</b></p> <p>Method Declarations 122</p> <p>Attributes 122</p> <p>Accessibility 124</p> <p>Modifiers 124</p> <p>Name 128</p> <p>Return Type 128</p> <p>Parameters 129</p> <p>Implementing Interfaces 133</p> <p>Extension Methods 135</p> <p>Lambda Expressions 136</p> <p>Expression Lambdas 136</p> <p>Statement Lambdas 137</p> <p>Async Lambdas 138</p> <p>Variance 139</p> <p>Asynchronous Methods 140</p> <p>Calling EndInvoke Directly 140</p> <p>Handling a Callback 141</p> <p>Using Async and Await 144</p> <p>Summary 146</p> <p>Exercises 147</p> <p><b>Chapter 7: Program Control Statements 151</b></p> <p>Decision Statements 151</p> <p>if-else Statements 152</p> <p>switch Statements 153</p> <p>Enumerated Values 156</p> <p>Conditional and Null-coalescing Operators 157</p> <p>Looping Statements 157</p> <p>for Loops 157</p> <p>Noninteger for Loops 159</p> <p>while Loops 160</p> <p>do Loops 161</p> <p>foreach Loops 161</p> <p>Enumerators 163</p> <p>Iterators 164</p> <p>break Statements 165</p> <p>continue Statements 165</p> <p>Summary 166</p> <p>Exercises 166</p> <p><b>Chapter 8: LINQ 169</b></p> <p>Introduction to LINQ 171</p> <p>Basic LINQ Query Syntax 173</p> <p>from 173</p> <p>where 174</p> <p>orderby 175</p> <p>select 175</p> <p>Using LINQ Results 177</p> <p>Advanced LINQ Query Syntax 178</p> <p>join 178</p> <p>join into 179</p> <p>group by 179</p> <p>Aggregate Values 181</p> <p>Set Methods 182</p> <p>Limiting Results 183</p> <p>Other LINQ Methods 184</p> <p>LINQ Extension Methods 185</p> <p>Method-Based Queries 185</p> <p>Method-Based Queries with Lambda Functions 187</p> <p>Extending LINQ 188</p> <p>LINQ to Objects 189</p> <p>LINQ to XML 189</p> <p>XML Literals 190</p> <p>LINQ into XML 191</p> <p>LINQ out of XML 192</p> <p>LINQ to ADO.NET 194</p> <p>LINQ to SQL and LINQ to Entities 194</p> <p>LINQ to DataSet 195</p> <p>PLINQ 198</p> <p>Summary 200</p> <p>Exercises 201</p> <p><b>Chapter 9: Error Handling 205</b></p> <p>Bugs Versus Undesirable Conditions 206</p> <p>Catching Bugs 206</p> <p>Code Contracts 209</p> <p>Catching Undesirable Conditions 213</p> <p>Global Exception Handling 216</p> <p>try catch Blocks 220</p> <p>Exception Objects 223</p> <p>Throwing Exceptions 224</p> <p>Rethrowing Exceptions 226</p> <p>Custom Exceptions 227</p> <p>Summary 229</p> <p>Exercises 229</p> <p><b>Chapter 10: Tracing and Debugging 231</b></p> <p>The Debug Menu 232</p> <p>The Debug ➪ Windows Submenu 234</p> <p>The Breakpoints Window 235</p> <p>The Immediate Window 237</p> <p>Trace Listeners 238</p> <p>Summary 240</p> <p>Exercises 241</p> <p><b>Part III: Object-Oriented Programming</b></p> <p><b>Chapter 11: OO P Concepts 245</b></p> <p>Classes 245</p> <p>Encapsulation 248</p> <p>Inheritance 250</p> <p>Inheritance Hierarchies 251</p> <p>Refinement and Abstraction 252</p> <p>Has-a and Is-a Relationships 257</p> <p>Adding and Modifying Class Features 257</p> <p>Hiding and Overriding 258</p> <p>abstract 261</p> <p>sealed 262</p> <p>Polymorphism 263</p> <p>Summary 266</p> <p>Exercises 266</p> <p><b>Chapter 12: Classes and Structures 269</b></p> <p>Classes 270</p> <p>attributes 270</p> <p>accessibility 271</p> <p>abstract | sealed | static 272</p> <p>partial 273</p> <p>Structures 275</p> <p>Value Versus Reference Types 275</p> <p>Memory Requirements 276</p> <p>Heap and Stack Performance 277</p> <p>Object Assignment 277</p> <p>Parameter Passing 277</p> <p>Boxing and Unboxing 281</p> <p>Constructors 282</p> <p>Structure Instantiation Details 285</p> <p>Garbage Collection 286</p> <p>Destructors 286</p> <p>Dispose 288</p> <p>Events 290</p> <p>Declaring Events 290</p> <p>Raising Events 292</p> <p>Catching Events 292</p> <p>Using Event Delegate Types 292</p> <p>Using Static Events 296</p> <p>Hiding and Overriding Events 296</p> <p>Raising Parent Class Events 296</p> <p>Implementing Custom Events 297</p> <p>Static Methods 298</p> <p>Summary 300</p> <p>Exercises 301</p> <p><b>Chapter 13: Namespaces 303</b></p> <p>Collisions in .NET 304</p> <p>The using Directive 304</p> <p>Project Templates 307</p> <p>Item Templates 309</p> <p>The Default Namespace 311</p> <p>Making Namespaces 311</p> <p>Resolving Namespaces 313</p> <p>The global Namespace 314</p> <p>Summary 315</p> <p>Exercises 315</p> <p><b>Chapter 14: Collection Classes 317</b></p> <p>Arrays 318</p> <p>Dimensions 318</p> <p>Lower Bounds 318</p> <p>Resizing 319</p> <p>Speed 320</p> <p>Other Array Class Features 320</p> <p>System.Collections 321</p> <p>ArrayList 321</p> <p>StringCollection 324</p> <p>NameValueCollection 325</p> <p>Dictionaries 326</p> <p>ListDictionary 327</p> <p>Hashtable 328</p> <p>HybridDictionary 329</p> <p>StringDictionary 329</p> <p>SortedList 329</p> <p>CollectionsUtil 331</p> <p>Stacks and Queues 331</p> <p>Stack 331</p> <p>Queue 333</p> <p>Generic Collections 335</p> <p>Collection Initializers 337</p> <p>Iterators 338</p> <p>Summary 339</p> <p>Exercises 340</p> <p><b>Chapter 15: Generics 343</b></p> <p>Advantages of Generics 344</p> <p>Defining Generics 344</p> <p>Generic Constructors 345</p> <p>Multiple Types 346</p> <p>Constrained Types 348</p> <p>Default Values 352</p> <p>Instantiating Generic Classes 352</p> <p>Generic Collection Classes 352</p> <p>Generic Methods 352</p> <p>Generics and Extension Methods 353</p> <p>Summary 354</p> <p>Exercises 355</p> <p><b>Part IV: Interacting with the Environment</b></p> <p><b>Chapter 16: Printing 359</b></p> <p>Windows Forms Printing 359</p> <p>Basic Printing 360</p> <p>Drawing Basics 365</p> <p>WPF Printing 380</p> <p>Using a Paginator 381</p> <p>Creating Documents 385</p> <p>Summary 390</p> <p>Exercises 390</p> <p><b>Chapter 17: Configuration and Resources 393</b></p> <p>Environment Variables 394</p> <p>Setting Environment Variables 394</p> <p>Using System.Environment 395</p> <p>Registry 397</p> <p>Configuration Files 402</p> <p>Resource Files 405</p> <p>Application Resources 405</p> <p>Embedded Resources 406</p> <p>Localization Resources 407</p> <p>Summary 408</p> <p>Exercises 408</p> <p><b>Chapter 18: Streams 411</b></p> <p>Stream 412</p> <p>FileStream 414</p> <p>MemoryStream 415</p> <p>BinaryReader and BinaryWriter 416</p> <p>TextReader and TextWriter 418</p> <p>StringReader and StringWriter 419</p> <p>StreamReader and StreamWriter 421</p> <p>Exists, OpenText, CreateText, and AppendText 422</p> <p>Custom Stream Classes 423</p> <p>Summary 423</p> <p>Exercises 424</p> <p><b>Chapter 19: File System Objects 425</b></p> <p>Filesystem Permissions 426</p> <p>.NET Framework Classes 426</p> <p>Directory 426</p> <p>File 428</p> <p>DriveInfo 430</p> <p>DirectoryInfo 431</p> <p>FileInfo 432</p> <p>FileSystemWatcher 434</p> <p>Path 436</p> <p>Using the Recycle Bin 438</p> <p>Using the FileIO.FileSystem Class 438</p> <p>Using API Functions 439</p> <p>Using Shell32.Shell 440</p> <p>Summary 443</p> <p>Exercises 444</p> <p><b>Chapter 20: Networking 445</b></p> <p>Networking Classes 446</p> <p>Downloading Information 448</p> <p>Downloading with WebClient 448</p> <p>Downloading with WebRequest 451</p> <p>Uploading Information 455</p> <p>Uploading with WebClient 455</p> <p>Uploading with WebRequest 455</p> <p>Getting FTP Information 456</p> <p>Sending E‑mail 458</p> <p>Sending Text Messages 460</p> <p>Summary 462</p> <p>Exercises 463</p> <p><b>Part V: Advanced Topics</b></p> <p><b>Chapter 21: Regular Expressions 469</b></p> <p>Building Regular Expressions 470</p> <p>Character Escapes 471</p> <p>Character Classes 472</p> <p>Anchors 473</p> <p>Grouping Constructs 474</p> <p>Quantifiers 475</p> <p>Alternation Constructs 476</p> <p>Sample Regular Expressions 476</p> <p>Using Regular Expressions 478</p> <p>Matching Patterns 479</p> <p>Finding Matches 480</p> <p>Making Replacements 481</p> <p>Parsing Input 482</p> <p>Summary 483</p> <p>Exercises 483</p> <p><b>Chapter 22: Parallel Programming 485</b></p> <p>Interacting with the User Interface 488</p> <p>BackgroundWorker 491</p> <p>TPL 492</p> <p>Parallel.For 492</p> <p>Parallel.ForEach 494</p> <p>Parallel.Invoke 495</p> <p>Tasks 496</p> <p>Threads 498</p> <p>Coordinating Tasks 499</p> <p>Race Conditions 499</p> <p>Deadlocks 501</p> <p>Thread-Safe Objects 503</p> <p>Summary 504</p> <p>Exercises 505</p> <p><b>Chapter 23: ADO .NET 509</b></p> <p>Selecting a Database 510</p> <p>Using Bound Controls 511</p> <p>Making a Data Source 511</p> <p>Making a DataGridView Interface 516</p> <p>Making a Details Interface 518</p> <p>Making a DataGrid Interface 518</p> <p>Loading DataSets 525</p> <p>Using ADO.NET 527</p> <p>Summary 530</p> <p>Exercises 531</p> <p><b>Chapter 24: XML 533</b></p> <p>Basic XML Syntax 534</p> <p>Writing XML Data 538</p> <p>XmlWriter 538</p> <p>Document Object Model 541</p> <p>XML Literals 547</p> <p>Reading XML Data 547</p> <p>XmlTextReader 547</p> <p>Document Object Model 550</p> <p>Related Technologies 551</p> <p>XPath 552</p> <p>XSLT 555</p> <p>Summary 559</p> <p>Exercises 559</p> <p><b>Chapter 25: Serialization 563</b></p> <p>XML Serialization 564</p> <p>Performing Serialization 565</p> <p>Controlling Serialization 569</p> <p>JSON Serialization 573</p> <p>Performing Serialization 574</p> <p>Controlling Serialization 575</p> <p>Binary Serialization 576</p> <p>Summary 578</p> <p>Exercises 578</p> <p><b>Chapter 26: Reflection 581</b></p> <p>Learning About Classes 582</p> <p>Getting and Setting Properties 585</p> <p>Getting Assembly Information 589</p> <p>Invoking Methods 591</p> <p>Running Scripts 593</p> <p>Summary 597</p> <p>Exercises 597</p> <p><b>Chapter 27: Cryptography 601</b></p> <p>Cryptographic Operations 602</p> <p>Randomness 603</p> <p>Using Random Numbers for Encryption 604</p> <p>Using Encryption for Random Numbers 604</p> <p>Cryptographically Secure Randomness 604</p> <p>Generating Random Numbers 605</p> <p>Symmetric Key Encryption 608</p> <p>Simple Encryption and Decryption 608</p> <p>Keys and Initialization Vectors 612</p> <p>Generating Key and IV Values 613</p> <p>Asymmetric Key Encryption 614</p> <p>Creating, Saving, and Retrieving Keys 615</p> <p>Encrypting Data 616</p> <p>Decrypting Data 616</p> <p>Example Encryption 617</p> <p>Summary 619</p> <p>Exercises 619</p> <p><b>Part VI: Appendices</b></p> <p><b>Appendix A: Solutions to Exercises 625</b></p> <p>Chapter 1 625</p> <p>Chapter 2 626</p> <p>Chapter 3 627</p> <p>Chapter 4 629</p> <p>Chapter 5 631</p> <p>Chapter 6 635</p> <p>Chapter 7 638</p> <p>Chapter 8 642</p> <p>Chapter 9 648</p> <p>Chapter 10 655</p> <p>Chapter 11 659</p> <p>Chapter 12 665</p> <p>Chapter 13 667</p> <p>Chapter 14 668</p> <p>Chapter 15 673</p> <p>Chapter 16 678</p> <p>Chapter 17 682</p> <p>Chapter 18 685</p> <p>Chapter 19 689</p> <p>Chapter 20 694</p> <p>Chapter 21 702</p> <p>Chapter 22 706</p> <p>Chapter 23 711</p> <p>Chapter 24 713</p> <p>Chapter 25 720</p> <p>Chapter 26 725</p> <p>Chapter 27 728</p> <p><b>Appendix B: Data Types 733</b></p> <p>Casting and Converting Values 734</p> <p>Widening and Narrowing Conversions 735</p> <p>Converting Objects 735</p> <p>The as Operator 735</p> <p>Casting Arrays 736</p> <p>Parsing Values 736</p> <p><b>Appendix C: Variable Declarations 737</b></p> <p>Initialization Expressions 738</p> <p>Using 739</p> <p>Enumerated Type Declarations 739</p> <p><b>Appendix d: Constant Declarations 741</b></p> <p><b>Appendix e: Operators 743</b></p> <p>Arithmetic Operators 743</p> <p>Comparison Operators 744</p> <p>Logical Operators 744</p> <p>Bitwise Operators 745</p> <p>Assignment Operators 745</p> <p>Conditional and Null-coalescing Operators 745</p> <p>Operator Precedence 745</p> <p>DateTime and TimeSpan Operators 747</p> <p>Operator Overloading 748</p> <p><b>Appendix f: Method Declarations 749</b></p> <p>Methods 749</p> <p>Property Procedures 750</p> <p>Lambda Functions and Expressions 750</p> <p>Extension Methods 751</p> <p><b>Appendix g: Useful Attributes 753</b></p> <p>Useful XML Serialization Attributes 753</p> <p>Useful JSON Serialization Attributes 754</p> <p>Binary Serialization Attributes 754</p> <p>Other Useful Attributes 755</p> <p><b>Appendix h: Control Statements 757</b></p> <p>Decision Statements 757</p> <p>if-else Statements 757</p> <p>switch 757</p> <p>Conditional and Null-coalescing Operators 758</p> <p>Looping Statements 758</p> <p>for Loops 758</p> <p>while Loops 759</p> <p>do Loops 759</p> <p>foreach Loops 759</p> <p>Enumerators 760</p> <p>Iterators 760</p> <p>break and continue Statements 760</p> <p><b>Appendix i: Error Handling 761</b></p> <p>Throwing Exceptions 762</p> <p><b>Appendix j: LINQ 763</b></p> <p>Basic LINQ Query Syntax 763</p> <p>from 763</p> <p>where 764</p> <p>orderby 764</p> <p>select 764</p> <p>join 765</p> <p>group by 765</p> <p>Aggregate Values 766</p> <p>Limiting Results 766</p> <p>LINQ Functions 767</p> <p>LINQ to XML 768</p> <p>XML Literals 768</p> <p>LINQ into XML 768</p> <p>LINQ out of XML 769</p> <p>LINQ to ADO.NET 770</p> <p>PLINQ 771</p> <p><b>Appendix k: Classes and Structures 773</b></p> <p>Classes 773</p> <p>Structures 774</p> <p>Constructors 774</p> <p>Destructors 774</p> <p>Events 775</p> <p><b>Appendix l: Collection Classes 777</b></p> <p>Arrays 777</p> <p>Simple Arrays 777</p> <p>Array Objects 778</p> <p>Collections 779</p> <p>Specialized Collections 779</p> <p>Generic Collections 779</p> <p>Collection Initializers 780</p> <p>Iterators 780</p> <p><b>Appendix m: Generic Declarations 783</b></p> <p>Generic Classes 783</p> <p>Generic Methods 784</p> <p><b>Appendix n: Printing and Graphics 785</b></p> <p>Windows Forms Printing 785</p> <p>Printing Steps 785</p> <p>Graphics Namespaces 786</p> <p>Drawing Graphics 787</p> <p>WPF Printing 795</p> <p>Using a Paginator 795</p> <p>Creating Documents 796</p> <p><b>Appendix o: Useful Exception Classes 799</b></p> <p>Standard Exception Classes 799</p> <p>Custom Exception Classes 802</p> <p><b>Appendix p: Date and Time Format Specifiers 803</b></p> <p>Standard Format Specifiers 803</p> <p>Custom Format Specifiers 804</p> <p><b>Appendix q: Other Format Specifiers 807</b></p> <p>Standard Numeric Format Specifiers 807</p> <p>Custom Numeric Format Specifiers 809</p> <p>Numeric Formatting Sections 809</p> <p>Composite Formatting 810</p> <p>Enumerated Type Formatting 811</p> <p><b>Appendix r: Streams 813</b></p> <p>Stream Class Summary 813</p> <p>Stream 814</p> <p>BinaryReader and BinaryWriter 815</p> <p>TextReader and TextWriter 817</p> <p>StringReader and StringWriter 818</p> <p>StreamReader and StreamWriter 818</p> <p>Text File Stream Methods 818</p> <p><b>Appendix s: Filesystem Classes 821</b></p> <p>Framework Classes 821</p> <p>Directory 821</p> <p>File 823</p> <p>DriveInfo 825</p> <p>DirectoryInfo 826</p> <p>FileInfo 827</p> <p>FileSystemWatcher 829</p> <p>Path 830</p> <p>Special Folders 832</p> <p>Recycle Bin 832</p> <p>FileIO.FileSystem 833</p> <p>API Functions 833</p> <p>Shell32.Shell 834</p> <p><b>Appendix t: Regular Expressions 835</b></p> <p>Creating Regular Expressions 835</p> <p>Character Escapes 835</p> <p>Character Classes 836</p> <p>Anchors 836</p> <p>Regular Expression Options 837</p> <p>Grouping Constructs 838</p> <p>Quantifiers 838</p> <p>Alternation Constructs 838</p> <p>Sample Regular Expressions 839</p> <p>Using Regular Expressions 839</p> <p>Matching Patterns 840</p> <p>Finding Matches 840</p> <p>Making Replacements 841</p> <p><b>Appendix u: Parallel Programming 843</b></p> <p>Interacting with the User Interface 843</p> <p>PLINQ 843</p> <p>BackgroundWorker 844</p> <p>TPL 844</p> <p>Parallel.For 845</p> <p>Parallel.ForEach 845</p> <p>Parallel.Invoke 845</p> <p>Tasks 845</p> <p>Threads 847</p> <p><b>Appendix v: XML 849</b></p> <p>Special Characters 849</p> <p>Writing XML Data 849</p> <p>XmlWriter 850</p> <p>Document Object Model 851</p> <p>XML Literals 854</p> <p>Reading XML Data 854</p> <p>XmlTextReader 854</p> <p>Document Object Model 856</p> <p>Related Technologies 856</p> <p>XPath 857</p> <p>XSLT 858</p> <p><b>Appendix w: Serialization 859</b></p> <p>XML Serialization 859</p> <p>Controlling Serialization 860</p> <p>JSON Serialization 861</p> <p>Performing Serialization 861</p> <p>Controlling Serialization 862</p> <p>Binary Serialization 863</p> <p><b>Appendix x: Reflection 865</b></p> <p>Type 865</p> <p>MemberInfo 870</p> <p>EventInfo 870</p> <p>MethodInfo 871</p> <p>FieldInfo 873</p> <p>PropertyInfo 874</p> <p>ParameterInfo 874</p> <p>Index 877</p>
<p><b>Rod Stephens</b> is a C# and Windows programming expert with more than 25 programming books to his credit, covering C#, Java, VB, and other programming languages. Rod’s C# Helper Website (www.csharphelper.com) receives almost 1 million post views per year, and provides tips, tricks, and code examples for professional C# programmers.</p>
<p><b>Get up to speed with C# 5.0 and its use with Visual Studio<sup>®</sup></b></p> <p>This comprehensive reference provides a thorough introduction to the latest C# language standard—C# 5.0—and its implementation in Visual Studio. It presents the basics of C# programming in a style accessible to all levels of programmers. The book then moves on to cover a range of advanced topics, including regular expressions, asynchronous and parallel programming, serialization, and encryption techniques. The reference section allows programmers to locate information quickly for specific language features. The appendices enable readers to quickly review the details of important programming techniques, syntax, and Framework classes.</p> <p><i>C# 5.0 Programmer’s Reference:</i></p> <ul> <li>Describes the C# language and related tools including LINQ, streams, file system objects, and network classes</li> <li>Presents fundamental concepts in object-oriented programming (OOP) with C# and explains how to define classes and object hierarchies</li> <li>Reveals how an application interacts with its environment and shows how the program can create printouts, use configuration files, and more</li> <li>Features advanced topics, including pattern recognition, parallel programming, databases, XML, and reflection</li> <li>Provides a categorized reference for the C# language</li> </ul> <p><b>Wrox Programmer’s References</b> are designed to give the experienced developer straight facts on a new technology, without hype or unnecessary explanations. They deliver hard information with plenty of practical examples to help you apply new tools to your development projects today.</p> <p><b>Programmer Forums</b></p> <p>Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.</p> <p><b>Code Downloads</b></p> <p>Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.</p> <p><b>Read More</b></p> <p>Find articles, e-books, sample chapters, and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.</p>

Diese Produkte könnten Sie auch interessieren:

Domain Architectures
Domain Architectures
von: Daniel J. Duffy
PDF ebook
31,99 €