Professional C# 6 and .NET Core 1.0. Christian Nagel

Читать онлайн.
Название Professional C# 6 and .NET Core 1.0
Автор произведения Christian Nagel
Жанр Зарубежная образовательная литература
Серия
Издательство Зарубежная образовательная литература
Год выпуска 0
isbn 9781119096634



Скачать книгу

26, “Composition,” covers Microsoft Composition that allows creating independence between containers and parts. In Chapter 27, “XML and JSON,” you learn about serializing objects into XML and JSON, as well as different techniques for reading and writing XML. Finally, in Chapter 28, “Localization,” you learn to localize applications using techniques for localizations that are important both for Windows and web applications.

      Part III: Windows Apps

      This section is about building applications with XAML – both Universal Windows apps and WPF. You’ll learn about the foundation of XAML in Chapter 29, “Core XAML,” with the XAML syntax, dependency properties, and also markup extensions where you can create your own XAML syntax. In Chapter 30, “XAML Styles and Resources,” you learn about styling your XAML-based apps. A big focus on the MVVM (model-view-view model) pattern is in Chapter 31, “Patterns with XAML Apps.” Here you learn to take advantage of the data-binding features of XAML-based applications, which allow sharing a lot of code between UWP apps and WPF applications. You can also share a lot of code for developing for the iPhone and Android platforms using Xamarin. However, developing with Xamarin is not covered in this book. After the introductory chapters covering both UWP apps and WPF applications, two chapters cover the specific features of UWP apps, and two chapters cover WPF applications. In Chapters 32, “Windows Apps: User Interfaces,” and 33, “Advanced Windows Apps,” you learn about specific XAML controls with UWP apps such as the RelativePanel and AdaptiveTrigger, the new compiled binding, and the application life cycle, sharing data, and creating background tasks. Chapters 34, “Windows Desktop Applications with WPF,” and 35, “Creating Documents with WPF,” go into WPF-specific features such as the Ribbon control, TreeView to show hierarchical data, WPF-specific data binding features, creating flow and fixed documents, and creating XML Paper Specification (XPS) files.

      This section is concluded with deployment in Chapter 36 to deploy WPF applications using ClickOnce, and information to get UWP apps in the store.

      Part IV: Web Applications and Services

      In this section you look at web applications and services. You’ll find two chapters about ADO.NET in this section as well. Although you can use ADO.NET (Chapter 37, “ADO.NET”) and the Entity Framework (Chapter 38, “Entity Framework Core”) from client applications as well, typically these technologies are used on the server, and you invoke services from the client.

      In Chapter 39, “Windows Services,” you can read how to create your own Windows services that run when the operating system is started.

      The new version of ASP.NET, ASP.NET Core 1.0, is covered in Chapter 40. Here you can read the foundation of ASP.NET and get ideas on how ASP.NET MVC 6 is built using these foundations. The features of ASP.NET MVC 6 are covered in Chapter 41.

      NOTE ASP.NET Web Forms are not covered in this book, although ASP.NET 4.6 offers new features for ASP.NET Web Forms. This book fully concentrates on the new version of ASP.NET technologies using ASP.NET Core 1.0. For information about ASP.NET Web Forms and ASP.NET MVC 5 you should read Professional C# 5 and .NET 4.5.1.

      Chapter 42 covers the REST service features of ASP.NET MVC 6: ASP.NET Web API. Publish and subscribe technologies for web applications, in the form of using the ASP.NET technologies WebHooks and SignalR, are covered in Chapter 43. Chapter 44 discusses an older technology for communication with services using SOAP and WCF.

      Again, like the previous section, this section concludes with deployment – deployment of websites running on Internet Information Server (IIS) or using Microsoft Azure to host websites.

Conventions

      To help you get the most from the text and keep track of what’s happening, a number of conventions are used throughout the book.

      WARNINGS Warnings hold important, not-to-be-forgotten information that is directly relevant to the surrounding text.

      NOTE Notes indicate notes, tips, hints, tricks, and/or asides to the current discussion.

      As for styles in the text:

      • We highlight new terms and important words when we introduce them.

      • We show keyboard strokes like this: Ctrl+A.

      • We show filenames, URLs, and code within the text like so: persistence.properties.

      • We present code in two different ways:

Source Code

      As you work through the examples in this book, you may choose either to type in all the code manually or to use the source code files that accompany the book. All the source code used in this book is available for download at www.wrox.com/go/professionalcsharp6. When at the site, simply locate the book’s title (either by using the Search box or by using one of the title lists) and click the Download Code link on the book’s detail page to obtain all the source code for the book.

      NOTE Because many books have similar titles, you may find it easiest to search by ISBN; this book’s ISBN is 978-1-119-09660-3.

      After you download the code, just decompress it with your favorite compression tool. Alternatively, you can go to the main Wrox code download page at http://www.wrox.com/dynamic/books/download.aspx to see the code available for this book and all other Wrox books.

      With the fast pace of updates with .NET Core, the source code of the book is also available at http://www .github.com/ProfessionalCSharp. Be aware that the source code on GitHub offers living source files that will be updated with minor update versions of Visual Studio, as well as new experimental C# features. For updates to the source code and additional samples done after the release of the book, check the GitHub site. The stable version of the source code that corresponds to the content of the printed book is available from the Wrox site.

Errata

      We make every effort to ensure that there are no errors in the text or in the code. However, no one is perfect, and mistakes do occur. If you find an error in one of our books, like a spelling mistake or faulty piece of code, we would be grateful for your feedback. By sending in errata you may save another reader hours of frustration, and at the same time you can help provide even higher-quality information.

      To find the errata page for this book, go to http://www.wrox.com and locate the title using the Search box or one of the title lists. Then, on the book details page, click the Book Errata link. On this page you can view all errata that have been submitted for this book and posted by Wrox editors. A complete book list including links to each book’s errata is also available at www.wrox.com/misc-pages/booklist.shtml.

      If you don’t spot “your” error on the Book Errata page, go to www.wrox.com/contact/techsupport.shtml and complete the form there to send us the error you have found. We’ll check the information and, if appropriate, post a message to the book’s errata page and fix the problem in subsequent editions of the book.

p2p.wrox.com

      For author and peer discussion, join the P2P forums at p2p.wrox.com. The forums are a web-based system for you to post messages relating to Wrox books and related technologies and interact with other readers and technology users. The forums offer a subscription feature to e-mail you topics of interest of your choosing when new posts are made to the forums. Wrox authors, editors, other industry experts, and your fellow readers are present on these forums.

      At http://p2p.wrox.com you can find a number of different forums to help you not only as you read this book, but also as you develop your own applications. To join the forums, just follow these steps:

      1.