C# 13 and .NET 9 – Modern Cross-Platform Development Fundamentals: Start building websites and services with ASP.NET Core 9, Blazor, and EF Core 9
- Length: 828 pages
- Edition: 9
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2024-11-12
- ISBN-10: 183588122X
- ISBN-13: 9781835881224
An accessible guide for beginner-to-intermediate programmers to the concepts, real-world applications, and latest features of C# 13 and .NET 9, with hands-on exercises using Visual Studio and Visual Studio Code
Key Features
- Explore the newest additions to C# 13, the .NET 9 class libraries, and Entity Framework Core 9
- Build professional websites and services with ASP.NET Core 9 and Blazor
- Enhance your skills with step-by-step code examples and best practices tips
Book Description
This Packt bestseller continues to be the definitive guide to modern cross-platform development. The 9th edition of C# 13 and .NET 9 – Modern Cross-Platform Development Fundamentals has been updated to cover the latest features and improvements in .NET 9 and C# 13. You’ll start by mastering object-oriented programming, learning how to write, test, and debug functions, and implementing interfaces. You’ll then dive into .NET APIs for data management, filesystem operations, and serialization.
This latest edition integrates .NET 9 enhancements into its examples: faster exceptions and new LINQ methods. New ASP.NET Core 9 features include optimized static assets, built-in OpenAPI document generation, and the HybridCache.
Practical examples, such as building websites and services with ASP.NET Core, have been refreshed to utilize the latest .NET 9 features. The book also introduces Blazor, with its new unified hosting model for unparalleled code reusability. With these updates, you’ll learn how to build robust applications and services efficiently and effectively.
By the end of this book, you’ll have the knowledge and confidence to create professional and high-performance web applications using the latest technologies in C# 13 and .NET 9.
What you will learn
- Discover the new features of .NET 9, including more flexible params and new LINQ like CountBy and Index
- Leverage the new ASP.NET Core 9 features for optimized static assets, OpenAPI document generation, and HybridCache
- Utilize the native AOT publish capability for faster startup and reduced memory footprint
- Build rich web user interface experiences using Blazor in ASP.NET Core 9
- Integrate and update databases in your applications using Entity Framework Core 9 models
- Query and manipulate data using LINQ
- Build powerful services using Minimal APIs
Who this book is for
This book is aimed at beginner to intermediate-level C# and .NET developers. While prior exposure to C# or .NET is not a prerequisite, a general understanding of programming concepts will be beneficial.
If you want to learn more technologies for building modern .NET projects like gRPC, SignalR, and .NET MAUI, read Mark’s Apps and Services with .NET 8 book next; and if you aim to become a professional .NET developer quickly or mainly work on team projects, read his other book, Tools and Skills for .NET 8.
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
- Introducing Modern Web Development Using .NET
- Building Websites Using ASP.NET Core
- Building Interactive Web Components Using Blazor
- Building and Consuming Web Services