Details

Beginning C# 7 Programming with Visual Studio 2017


Beginning C# 7 Programming with Visual Studio 2017


1. Aufl.

von: Benjamin Perkins, Jacob Vibe Hammer, Jon D. Reid

35,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 20.03.2018
ISBN/EAN: 9781119458722
Sprache: englisch
Anzahl Seiten: 912

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

Beschreibungen

<p><b> Easily get started programming using the ultra-versatile C# 7 and Visual Studio 2017</b></p> <p><i>Beginning C# 7 Programming with Visual Studio 2017</i> is the beginner’s ultimate guide to the world’s most popular programming language. Whether you’re new to programming entirely, or just new to C#, there has never been a better time to get started. The new C# 7 and Visual Studio 2017 updates feature a number of new tools and features that streamline the workflow, simplify the code, and make it easier than ever to build high-quality apps. This book walks you through everything you need to know, starting from the very basics, to have you programming in no time. You’ll learn about variables, flow control, and object oriented programming, then move into Web and Windows programming as well as databases and XML. The companion website provides downloadable code examples, and practical Try It Out sections provide explicit, step-by-step instructions for writing your own useful, customizable code.</p> <p>C# 7 can be used to build Windows applications, program Windows 10, and write Web apps when used alongside ASP.NET. With programming skills becoming <i>de rigueur</i> in fields far beyond the tech world, C# 7 is a great place to start building versatile, helpful skills. This book gets you started quickly and easily with instruction from a master-team of C# programmers.</p> <ul> <li>Learn how to program using the world’s leading programming language</li> <li>Build smarter, faster apps using the latest features in C# 7 and Visual Studio 2017</li> <li>Find and fix bugs sooner, saving headaches down the line</li> <li>Integrate with all .NET Core, Azure applications, cloud services, Docker containers, and more</li> </ul> <p>The world of programming can seem intimidating to a beginner, and the prospect of learning a whole new “language” can seem daunting. <i>Beginning C# 7 Programming with Visual Studio 2017</i> demystifies the process and shows you how to bring your ideas to life.</p>
<p>Introduction xxi</p> <p><b>Part I: The C# Language</b></p> <p><b>Chapter 1: Introducing C# 3</b></p> <p>What Is the .NET Framework? 4</p> <p>What Is C#? 9</p> <p>Visual Studio 2017 11</p> <p><b>Chapter 2: Writing a C# Program 15</b></p> <p>The Visual Studio 2017 Development Environment 16</p> <p>Console Applications 21</p> <p>Desktop Applications 26</p> <p><b>Chapter 3: Variables and Expressions 33</b></p> <p>Basic C# Syntax 34</p> <p>Basic C# Console Application Structure 36</p> <p>Variables 38</p> <p>Expressions 46</p> <p><b>Chapter 4: Flow Control 59</b></p> <p>Boolean Logic 60</p> <p>Branching 65</p> <p>Looping 72</p> <p><b>Chapter 5: More About Variables 83</b></p> <p>Type Conversion 84</p> <p>Complex Variable Types 91</p> <p>String Manipulation 109</p> <p><b>Chapter 6: Functions 117</b></p> <p>Defining and Using Functions 118</p> <p>Variable Scope 131</p> <p>The Main() Function 138</p> <p>Struct Functions 141</p> <p>Overloading Functions 142</p> <p>Using Delegates 144</p> <p><b>Chapter 7: Debugging and Error Handling 149</b></p> <p>Debugging in Visual Studio 150</p> <p>Error Handling 167</p> <p><b>Chapter 8: Introduction To Object-Oriented Programming 179</b></p> <p>What Is Object-Oriented Programming? 180</p> <p>OOP Techniques 186</p> <p>OOP in Desktop Applications 196</p> <p><b>Chapter 9: Defining Classes 203</b></p> <p>Class Definitions in C# 204</p> <p>System. Object 209</p> <p>Constructors and Destructors 211</p> <p>OOP Tools in Visual Studio 216</p> <p>Class Library Projects 222</p> <p>Interfaces Versus Abstract Classes 226</p> <p>Struct Types 228</p> <p>Shallow Copying Versus Deep Copying 230</p> <p><b>Chapter 10: Defining Class Members 233</b></p> <p>Member Definitions 234</p> <p>Additional Class Member Topics 244</p> <p>Interface Implementation 249</p> <p>Partial Class Definitions 252</p> <p>Partial Method Definitions 253</p> <p>Example Application 255</p> <p>The Call Hierarchy Window 265</p> <p><b>Chapter 11: Collections, Comparisons, and Conversions 269</b></p> <p>Collections 270</p> <p>Comparisons 292</p> <p>Conversions 313</p> <p><b>Chapter 12: Generics 319</b></p> <p>What Are Generics? 320</p> <p>Using Generics 321</p> <p>Defining Generic Types 339</p> <p>Variance 353</p> <p><b>Chapter 13: Additional C# Techniques 359</b></p> <p>The :: Operator and the Global Namespace Qualifier 360</p> <p>Custom Exceptions 361</p> <p>Events 363</p> <p>Expanding and Using CardLib 375</p> <p>Attributes 384</p> <p>Initializers 386</p> <p>Type Inference 392</p> <p>Anonymous Types 394</p> <p>Dynamic Lookup 398</p> <p>Advanced Method Parameters 402</p> <p>Lambda Expressions 409</p> <p><b>Part II: Windows Programming</b></p> <p><b>Chapter 14: Basic Desktop Programming 425</b></p> <p>XAML 426</p> <p>The Playground 429</p> <p>Control Layout 441</p> <p>The Game Client 452</p> <p><b>Chapter 15: Advanced Desktop Programming 479</b></p> <p>Creating and Styling Controls 480</p> <p>WPF User Controls 485</p> <p>The Main Window 499</p> <p>Putting It All Together 504</p> <p><b>Part III: Cloud and Cross-Platform Programming</b></p> <p><b>Chapter 16: Basic Cloud Programming 533</b></p> <p>The Cloud, Cloud Computing, and the Cloud Optimized Stack 534</p> <p>Cloud Patterns and Best Practices 537</p> <p>Using Microsoft Azure C# Libraries to Create a Storage Container 538</p> <p>Creating an ASP.NET 4.7 Web Site That Uses the Storage Container 548</p> <p><b>Chapter 17: Advanced Cloud Programming and Deployment 559</b></p> <p>Creating an ASP.NET Web API 560</p> <p>Deploying and Consuming an ASP.NET Web API on</p> <p>Microsoft Azure 564</p> <p>Scaling an ASP.NET Web API on Microsoft Azure 572</p> <p><b>Chapter 18: .NET standard and .NET Core 579</b></p> <p>Cross-Platform Basics and Key “Must Know” Terms 581</p> <p>What Is .NET Standard, and Why Is It Needed? 583</p> <p>Referencing and Targeting Frameworks 587</p> <p>What is .NET Core? 588</p> <p>Building and Packaging a .NET Standard Library 596</p> <p>Building a .NET Core Application with Visual Studio 602</p> <p>Porting from .NET Framework to .NET Core 605</p> <p><b>Chapter 19: ASP.NET and ASP.NET Core 609</b></p> <p>Overview of Web Applications 610</p> <p>Which ASP.NET to Use and Why 611</p> <p>Using ASP.NET Web Forms 620</p> <p>Creating ASP.NET Core Web Applications 627</p> <p><b>Part IV: Data Access</b></p> <p><b>Chapter 20: Files 641</b></p> <p>File Classes for Input and Output 642</p> <p>Streams 647</p> <p>Monitoring the File System 664</p> <p><b>Chapter 21: XML and JSON 673</b></p> <p>XML Basics 674</p> <p>JSON Basics 674</p> <p>XML Schemas 675</p> <p>XML Document Object Model 677</p> <p>Converting XML to JSON 689</p> <p>Searching XML with XPath 691</p> <p><b>Chapter 22: LINQ 697</b></p> <p>LINQ to XML 698</p> <p>LINQ Providers 704</p> <p>LINQ Query Syntax 705</p> <p>LINQ Method Syntax 709</p> <p>Ordering Query Results 712</p> <p>Understanding the orderby Clause 713</p> <p>Querying a Large Data Set 714</p> <p>Using Aggregate Operators 717</p> <p>Using the Select Distinct Query 720</p> <p>Ordering by Multiple Levels 723</p> <p>Using Group Queries 725</p> <p>Using Joins 727</p> <p><b>Chapter 23: Databases 731</b></p> <p>Using Databases 731</p> <p>Installing SQL Server Express 732</p> <p>Entity Framework 732</p> <p>A Code First Database 733</p> <p>But Where Is My Database? 740</p> <p>Navigating Database Relationships 742</p> <p>Handling Migrations 749</p> <p>Creating and Querying XML from an Existing Database 750</p> <p><b>Part V: Additional Techniques</b></p> <p><b>Chapter 24: Windows Communication Foundation 761</b></p> <p>What Is WCF? 762</p> <p>WCF Concepts 763</p> <p>WCF Programming 768</p> <p><b>Chapter 25: Universal Apps 793</b></p> <p>Getting Started 794</p> <p>Windows Universal Apps 795</p> <p>App Concepts and Design 796</p> <p>App Development 797</p> <p>Common Elements of Windows Store Apps 816</p> <p>The Windows Store 818</p> <p>Appendix: Exercise Solutions 821</p> <p>Index 865</p>
<p><b>About the authors</b> <p><b>Benjamin Perkins</b> is a Sr. Escalation Engineer at Microsoft. His experience includes designing, developing, deploying, administering, and managing enterprise-level IT solutions. <p><b>Jacob Vibe Hammer</b> helps develop solutions for the health care industry as a Senior Software Engineer at Systematic in Denmark. He has co-authored a number of .NET books and works with numerous Microsoft technologies. <p><b>Jon D. Reid</b> is a Product Solution Manager in Research and Development at IFS AB, specializing in Field Service Management using C# and .NET. <p>Visit us at wrox.com for free code samples.
<p><b>Learn to program with the world's leading programming language</b> <p>Ultra-versatile C# is the most popular programming language in the world, and this book is your ultimate beginner's guide to programming using C# 7 and Visual Studio 2017. Even if you have never written a line of code, these expert Wrox authors will walk you through everything you need to know. You'll learn about variables, flow control, and object-oriented programming, then move into web and Windows programming as well as databases and XML. Exclusive "Try It Out" sections in the introductory chapters offer step-by-step instruction, enabling you to write your own usable code and build smarter, faster apps. <p><i>Beginning C# 7 Programming with Visual Studio 2017:</i> <ul> <li>Introduces you to variables, expressions, flow control, functions, debugging, and error handling</li> <li>Covers object oriented programming, classes and class members, web and Windows programming, and Windows forms</li> <li>Explains how enhancements such as code navigation, IntelliSense, refactoring, and code fixes save you programming time and effort</li> <li>Provides plenty of downloadable code samples at wrox.com for your use</li> <li>Shows you how to find and fix bugs early in the process, saving time and headaches later</li> <li>Explores cloud, cross-platform, and data access programming</li> </ul> <p><b>Wrox Beginning guides</b> 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.

Diese Produkte könnten Sie auch interessieren:

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