C# 10 and .NET 6 – Modern Cross-Platform Development
by Mark J. Price
English | 2021 | ISBN: 1801077363 | 825 pages | True PDF EPUB | 35.82 MB
by Mark J. Price
English | 2021 | ISBN: 1801077363 | 825 pages | True PDF EPUB | 35.82 MB
A comprehensive guide for beginners to learn the key concepts, real-world applications, and latest features of C# 10 and .NET 6 with hands-on exercises using Visual Studio 2022 and Visual Studio Code
Key Features
Explore the newest additions to C# 10, the .NET 6 class library, and Entity Framework Core 6
Create professional websites and services with ASP.NET Core 6 and Blazor
Build cross-platform apps for Windows, macOS, Linux, iOS, and Android
Book Description
This latest edition is extensively revised to accommodate all the latest features that come with C# 10 and .NET 6.
You will learn object-oriented programming, writing, testing, and debugging functions, implementing interfaces, and inheriting classes. The book covers the .NET APIs for performing tasks like managing and querying data, monitoring and improving performance, and working with the filesystem, async streams, serialization, and encryption. It provides examples of cross-platform apps you can build and deploy, such as websites and services using ASP.NET Core.
The best application for learning the C# language constructs and many of the .NET libraries does not distract with unnecessary application code. Hence, the C# and .NET topics covered in Chapters 1 to 12 feature console applications. In Chapters 13 to 17, having mastered the basics, you will build practical applications and services using ASP.NET Core, the Model-View-Controller (MVC) pattern, and Blazor.
There are also two new online chapters on using .NET MAUI to build cross-platform apps and building services using a variety of technologies, including Web API, OData, gRPC, GraphQL, SignalR, and Azure Functions.
What you will learn
Build rich web experiences using Blazor, Razor Pages, the Model-View-Controller (MVC) pattern, and other features of ASP.NET Core
Build your own types with object-oriented programming
Write, test, and debug functions
Query and manipulate data using LINQ
Integrate and update databases in your apps using Entity Framework Core, Microsoft SQL Server, and SQLite
Build and consume powerful services using the latest technologies, including gRPC and GraphQL
Build cross-platform apps using .NET MAUI and XAML
Who this book is for
This book is for beginners to C# and .NET or programmers who have worked with C# in the past but feel left behind by the changes in the past few years. This book doesn't expect you to have any C# or .NET experience; however, you should have a general understanding of programming.
Students and professionals with a science, technology, engineering, or mathematics (STEM) background can benefit from this book.
Table of Contents
Hello C#, Welcome .NET!
Speaking C#
Controlling Flow, Converting Types, and Handling Exceptions
Writing, Debugging, and Testing Functions
Building Your Own Types with Object-Oriented Programming
Implementing Interfaces and Inheriting Classes
Packaging and Distributing .NET Types
Working with Common .NET Types
Working with Files, Streams, and Serialization
Working with Data Using Entity Framework Core
Querying and Manipulating Data Using LINQ
Improving Performance and Scalability Using Multitasking
Introducing Practical Applications of C# and .NET
Building Websites Using ASP.NET Core Razor Pages
Building Websites Using the Model-View-Controller Pattern
Building and Consuming Web Services
Building User Interfaces Using Blazor
Bonus Content: Building and Consuming Specialized Services
(N.B. Please use the Look Inside option to see further chapters)