C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals, Eighth Edition 🔍
Mark J. Price
Packt Publishing, Limited, 8th ed., FR, 2023
英语 [en] · EPUB · 28.6MB · 2023 · 📘 非小说类图书 · 🚀/lgli/lgrs · Save
描述
An accessible guide for beginner-to-intermediate programmers to the concepts, real-world applications, and latest features of C# 12 and .NET 8, with hands-on exercises using Visual Studio 2022 and Visual Studio Code.
Key Features
Explore the latest additions to C# 12, the .NET 8 class libraries, and Entity Framework Core 8
Create professional websites and services with ASP.NET Core 8 and Blazor
Build your confidence with step-by-step code examples and tips for best practices
Book Description
This Packt bestseller will give you a solid foundation to start building apps and services with confidence.
You'll learn object-oriented programming, writing, testing, and debugging functions, and implementing interfaces. You'll take on .NET APIs for managing and querying data, working with the filesystem, and serialization. As you progress, you'll explore examples of cross-platform projects you can build and deploy, such as websites and services using ASP.NET Core.
This latest edition integrates .NET 8 enhancements into its examples: type aliasing and primary constructors for concise and expressive code, and lambda expressions with parameter defaults for more flexible code. You’ll handle errors robustly through new built-in guard clauses and explore a simplified implementation of caching in ASP.NET Core 8.
If that’s not enough, you’ll also see how native ahead-of-time (AOT) compiler publish lets web services reach new heights. You’ll work with the seamless new HTTP Editor in Visual Studio 2022 to enhance the testing and debugging process. You’ll even get introduced to Blazor Full Stack with its new unified hosting model for unparalleled code reusability.
What you will learn
Discover C# 12's new features, including aliasing any type and primary constructors
Try out the native AOT publish capability for ASP.NET Core 8 Minimal APIs web services
Build rich web experiences using Blazor Full Stack, Razor Pages, the Model-View-Controller (MVC) pattern, and other ASP.NET Core features
Integrate and update databases in your apps using Entity Framework Core models
Query and manipulate data using LINQ
Build and consume powerful services using Web API and Minimal API
Who this book is for
This book is for beginners as well as intermediate-level C# and .NET programmers who have worked with C# in the past and want to catch up with the changes made in the last few years. Prior exposure to C# or .NET is not a prerequisite. A general understanding of programming will help you to work through the book more comfortably, though the content is suitable for those completely new to programming. If you already have some C# and .NET skills and want to focus on developing practical apps, you can pick up Mark’s other .NET book, Apps and Services with .NET 8, instead.
Key Features
Explore the latest additions to C# 12, the .NET 8 class libraries, and Entity Framework Core 8
Create professional websites and services with ASP.NET Core 8 and Blazor
Build your confidence with step-by-step code examples and tips for best practices
Book Description
This Packt bestseller will give you a solid foundation to start building apps and services with confidence.
You'll learn object-oriented programming, writing, testing, and debugging functions, and implementing interfaces. You'll take on .NET APIs for managing and querying data, working with the filesystem, and serialization. As you progress, you'll explore examples of cross-platform projects you can build and deploy, such as websites and services using ASP.NET Core.
This latest edition integrates .NET 8 enhancements into its examples: type aliasing and primary constructors for concise and expressive code, and lambda expressions with parameter defaults for more flexible code. You’ll handle errors robustly through new built-in guard clauses and explore a simplified implementation of caching in ASP.NET Core 8.
If that’s not enough, you’ll also see how native ahead-of-time (AOT) compiler publish lets web services reach new heights. You’ll work with the seamless new HTTP Editor in Visual Studio 2022 to enhance the testing and debugging process. You’ll even get introduced to Blazor Full Stack with its new unified hosting model for unparalleled code reusability.
What you will learn
Discover C# 12's new features, including aliasing any type and primary constructors
Try out the native AOT publish capability for ASP.NET Core 8 Minimal APIs web services
Build rich web experiences using Blazor Full Stack, Razor Pages, the Model-View-Controller (MVC) pattern, and other ASP.NET Core features
Integrate and update databases in your apps using Entity Framework Core models
Query and manipulate data using LINQ
Build and consume powerful services using Web API and Minimal API
Who this book is for
This book is for beginners as well as intermediate-level C# and .NET programmers who have worked with C# in the past and want to catch up with the changes made in the last few years. Prior exposure to C# or .NET is not a prerequisite. A general understanding of programming will help you to work through the book more comfortably, though the content is suitable for those completely new to programming. If you already have some C# and .NET skills and want to focus on developing practical apps, you can pick up Mark’s other .NET book, Apps and Services with .NET 8, instead.
备用文件名
lgrsnf/Mark_J._Price_-_C#_12_and_.NET_8__Modern_Cross-Platform_Development_Fundamentals.epub
备选标题
C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals : Start Building Websites and Services with ASP.NET Core 8, Blazor, and EF Core 8
备用版本
United Kingdom and Ireland, United Kingdom
备用版本
Packt Publishing, [N.p.], 2023
备用描述
Preface
Where to find the code solutions
What this book covers
What you need for this book
Get in touch
Hello, C#! Welcome, .NET!
Introducing this book and its contents
Setting up your development environment
Understanding .NET
Building console apps using Visual Studio 2022
Building console apps using Visual Studio Code
Making good use of the GitHub repository for this book
Looking for help
Practicing and exploring
Summary
Speaking C#
Introducing the C# language
Discovering your C# compiler version
Understanding C# grammar and vocabulary
Working with variables
Exploring more about console apps
Understanding async and await
Practicing and exploring
Summary
Controlling Flow, Converting Types, and Handling Exceptions
Operating on variables
Understanding iteration statements
Storing multiple values in an array
Casting and converting between types
Handling exceptions
Checking for overflow
Practicing and exploring
Summary
Writing, Debugging, and Testing Functions
Writing functions
Debugging during development
Logging during development and runtime
Unit testing
Throwing and catching exceptions in functions
Practicing and exploring
Summary
Building Your Own Types with Object-Oriented Programming
Talking about OOP
Pattern matching with objects
Working with record types
Practicing and exploring
Summary
Implementing Interfaces and Inheriting Classes
Setting up a class library and console application
Static methods and overloading operators
Making types safely reusable with generics
Raising and handling events
Implementing interfaces
Managing memory with reference and value types
Working with null values
Inheriting from classes
Casting within inheritance hierarchies
Inheriting and extending .NET types
Summarizing custom type choices
Practicing and exploring
Summary
Packaging and Distributing .NET Types
The road to .NET 8
Understanding .NET components
Publishing your code for deployment
Native ahead-of-time compilation
Decompiling .NET assemblies
Packaging your libraries for NuGet distribution
Working with preview features
Practicing and exploring
Summary
Working with Common .NET Types
Working with numbers
Working with text
Pattern matching with regular expressions
Storing multiple objects in collections
Working with spans, indexes, and ranges
Practicing and exploring
Summary
Working with Files, Streams, and Serialization
Managing the filesystem
Reading and writing with streams
Encoding and decoding text
Serializing object graphs
Working with environment variables
Practicing and exploring
Summary
Working with Data Using Entity Framework Core
Understanding modern databases
Setting up EF Core in a .NET project
Defining EF Core models
Querying EF Core models
Loading and tracking patterns with EF Core
Modifying data with EF Core
Practicing and exploring
Summary
Querying and Manipulating Data Using LINQ
Writing LINQ expressions
LINQ in practice
Sorting and more
Using LINQ with EF Core
Joining, grouping, and lookups
Aggregating and paging sequences
Practicing and exploring
Summary
Introducing Web Development Using ASP.NET Core
Understanding ASP.NET Core
Structuring projects
Building an entity model for use in the rest of the book
Understanding web development
Practicing and exploring
Summary
Building Websites Using ASP.NET Core Razor Pages
Exploring ASP.NET Core
Exploring ASP.NET Core Razor Pages
Using Entity Framework Core with ASP.NET Core
Configuring services and the HTTP request pipeline
Practicing and exploring
Summary
Building and Consuming Web Services
Building web services using the ASP.NET Core Web API
Creating a web service for the Northwind database
Documenting and testing web services
Consuming web services using HTTP clients
Practicing and exploring
Summary
Building User Interfaces Using Blazor
History of Blazor
Reviewing the Blazor Web App project template
Building components using Blazor
Enabling client-side execution using WebAssembly
Practicing and exploring
Summary
Epilogue
Next steps on your C# and .NET learning journey
The ninth edition, coming November 2024
Good luck!
Index
Where to find the code solutions
What this book covers
What you need for this book
Get in touch
Hello, C#! Welcome, .NET!
Introducing this book and its contents
Setting up your development environment
Understanding .NET
Building console apps using Visual Studio 2022
Building console apps using Visual Studio Code
Making good use of the GitHub repository for this book
Looking for help
Practicing and exploring
Summary
Speaking C#
Introducing the C# language
Discovering your C# compiler version
Understanding C# grammar and vocabulary
Working with variables
Exploring more about console apps
Understanding async and await
Practicing and exploring
Summary
Controlling Flow, Converting Types, and Handling Exceptions
Operating on variables
Understanding iteration statements
Storing multiple values in an array
Casting and converting between types
Handling exceptions
Checking for overflow
Practicing and exploring
Summary
Writing, Debugging, and Testing Functions
Writing functions
Debugging during development
Logging during development and runtime
Unit testing
Throwing and catching exceptions in functions
Practicing and exploring
Summary
Building Your Own Types with Object-Oriented Programming
Talking about OOP
Pattern matching with objects
Working with record types
Practicing and exploring
Summary
Implementing Interfaces and Inheriting Classes
Setting up a class library and console application
Static methods and overloading operators
Making types safely reusable with generics
Raising and handling events
Implementing interfaces
Managing memory with reference and value types
Working with null values
Inheriting from classes
Casting within inheritance hierarchies
Inheriting and extending .NET types
Summarizing custom type choices
Practicing and exploring
Summary
Packaging and Distributing .NET Types
The road to .NET 8
Understanding .NET components
Publishing your code for deployment
Native ahead-of-time compilation
Decompiling .NET assemblies
Packaging your libraries for NuGet distribution
Working with preview features
Practicing and exploring
Summary
Working with Common .NET Types
Working with numbers
Working with text
Pattern matching with regular expressions
Storing multiple objects in collections
Working with spans, indexes, and ranges
Practicing and exploring
Summary
Working with Files, Streams, and Serialization
Managing the filesystem
Reading and writing with streams
Encoding and decoding text
Serializing object graphs
Working with environment variables
Practicing and exploring
Summary
Working with Data Using Entity Framework Core
Understanding modern databases
Setting up EF Core in a .NET project
Defining EF Core models
Querying EF Core models
Loading and tracking patterns with EF Core
Modifying data with EF Core
Practicing and exploring
Summary
Querying and Manipulating Data Using LINQ
Writing LINQ expressions
LINQ in practice
Sorting and more
Using LINQ with EF Core
Joining, grouping, and lookups
Aggregating and paging sequences
Practicing and exploring
Summary
Introducing Web Development Using ASP.NET Core
Understanding ASP.NET Core
Structuring projects
Building an entity model for use in the rest of the book
Understanding web development
Practicing and exploring
Summary
Building Websites Using ASP.NET Core Razor Pages
Exploring ASP.NET Core
Exploring ASP.NET Core Razor Pages
Using Entity Framework Core with ASP.NET Core
Configuring services and the HTTP request pipeline
Practicing and exploring
Summary
Building and Consuming Web Services
Building web services using the ASP.NET Core Web API
Creating a web service for the Northwind database
Documenting and testing web services
Consuming web services using HTTP clients
Practicing and exploring
Summary
Building User Interfaces Using Blazor
History of Blazor
Reviewing the Blazor Web App project template
Building components using Blazor
Enabling client-side execution using WebAssembly
Practicing and exploring
Summary
Epilogue
Next steps on your C# and .NET learning journey
The ninth edition, coming November 2024
Good luck!
Index
备用描述
An accessible guide for beginner-to-intermediate programmers to the concepts, real-world applications, and latest features of C# 12 and.NET 8, with hands-on exercises using Visual Studio 2022 and Visual Studio Code. Purchase of the print or Kindle book includes a free PDF eBookKey FeaturesExplore the latest additions to C# 12, the.NET 8 class libraries, and Entity Framework Core 8Create professional websites and services with ASP.NET Core 8 and BlazorBuild your confidence with step-by-step code examples and tips for best practicesBook DescriptionThis latest edition of the bestselling Packt series will give you a solid foundation to start building projects using modern C# and.NET with confidence. You'll learn about object-oriented programming; writing, testing, and debugging functions; and implementing interfaces. You'll take on.NET APIs for managing and querying data, working with the fi lesystem, and serialization. As you progress, you'll explore examples of cross-platform projects you can build and deploy, such as websites and services using ASP.NET Core. This latest edition integrates.NET 8 enhancements into its examples: type aliasing and primary constructors for concise and expressive code. You'll handle errors robustly through the new built-in guard clauses and explore a simplified implementation of caching in ASP.NET Core 8. If that's not enough, you'll also see how native ahead-of-time (AOT) compiler publish lets web services reduce memory use and run faster. You'll work with the seamless new HTTP editor in Visual Studio 2022 to enhance the testing and debugging process. You'll even get introduced to Blazor Full Stack with its new unified hosting model for unparalleled web development flexibility.What you will learnDiscover C# 12's new features, including aliasing any type and primary constructorsTry out the native AOT publish capability for ASP.NET Core 8 Minimal APIs web servicesBuild rich web experiences using Blazor Full Stack, Razor Pages, and other ASP.NET Core featuresIntegrate and update databases in your apps using Entity Framework Core modelsQuery and manipulate data using LINQBuild and consume powerful services using Web API and Minimal APIWho this book is forThis book is for beginners as well as intermediate-level C# and.NET programmers who have worked with C# in the past and want to catch up with the changes made in the last few years. Prior exposure to C# or.NET is not a prerequisite. A general understanding of programming will help you to work through the book more comfortably, though the content is suitable for those completely new to programming. If you already have some C# and.NET skills and want to focus on developing practical apps, you can pick up Mark's other.NET book, Apps and Services with.NET 8, instead.
备用描述
An accessible guide for beginner-to-intermediate programmers to the concepts, real-world applications, and latest features of C# 12 and .NET 8, with hands-on exercises using Visual Studio 2022 and Visual Studio Code. Purchase of the print or Kindle book includes a free eBook in PDF format. This Packt bestseller will give you a solid foundation to start building apps and services with confidence. You'll learn object-oriented programming, writing, testing, and debugging functions, and implementing interfaces. You'll take on .NET APIs for managing and querying data, working with the filesystem, and serialization. As you progress, you'll explore examples of cross-platform projects you can build and deploy, such as websites and services using ASP.NET Core. This latest edition integrates .NET 8 enhancements into its type aliasing and primary constructors for concise and expressive code, and lambda expressions with parameter defaults for more flexible code. Youll handle errors robustly through new built-in guard clauses and explore a simplified implementation of caching in ASP.NET Core 8. If thats not enough, youll also see how native ahead-of-time (AOT) compiler publish lets web services reach new heights. Youll work with the seamless new HTTP Editor in Visual Studio 2022 to enhance the testing and debugging process. Youll even get introduced to Blazor Full Stack with its new unified hosting model for unparalleled code reusability. This book is for beginners as well as intermediate-level C# and .NET programmers who have worked with C# in the past and want to catch up with the changes made in the last few years. Prior exposure to C# or .NET is not a prerequisite. A general understanding of programming will help you to work through the book more comfortably, though the content is suitable for those completely new to programming. If you already have some C# and .NET skills and want to focus on developing practical apps, you can pick up Marks other .NET book, Apps and Services with .NET 8, instead.
开源日期
2023-11-16
We strongly recommend that you support the author by buying or donating on their personal website, or borrowing in your local library.
🚀 快速下载
成为会员以支持书籍、论文等的长期保存。为了感谢您对我们的支持,您将获得高速下载权益。❤️
如果您在本月捐款,您将获得双倍的快速下载次数。
🐢 低速下载
由可信的合作方提供。 更多信息请参见常见问题解答。 (可能需要验证浏览器——无限次下载!)
- 低速服务器(合作方提供) #1 (稍快但需要排队)
- 低速服务器(合作方提供) #2 (稍快但需要排队)
- 低速服务器(合作方提供) #3 (稍快但需要排队)
- 低速服务器(合作方提供) #4 (稍快但需要排队)
- 低速服务器(合作方提供) #5 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #6 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #7 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #8 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #9 (无需排队,但可能非常慢)
- 下载后: 在我们的查看器中打开
所有选项下载的文件都相同,应该可以安全使用。即使这样,从互联网下载文件时始终要小心。例如,确保您的设备更新及时。
外部下载
-
对于大文件,我们建议使用下载管理器以防止中断。
推荐的下载管理器:JDownloader -
您将需要一个电子书或 PDF 阅读器来打开文件,具体取决于文件格式。
推荐的电子书阅读器:Anna的档案在线查看器、ReadEra和Calibre -
使用在线工具进行格式转换。
推荐的转换工具:CloudConvert和PrintFriendly -
您可以将 PDF 和 EPUB 文件发送到您的 Kindle 或 Kobo 电子阅读器。
推荐的工具:亚马逊的“发送到 Kindle”和djazz 的“发送到 Kobo/Kindle” -
支持作者和图书馆
✍️ 如果您喜欢这个并且能够负担得起,请考虑购买原版,或直接支持作者。
📚 如果您当地的图书馆有这本书,请考虑在那里免费借阅。
下面的文字仅以英文继续。
总下载量:
“文件的MD5”是根据文件内容计算出的哈希值,并且基于该内容具有相当的唯一性。我们这里索引的所有影子图书馆都主要使用MD5来标识文件。
一个文件可能会出现在多个影子图书馆中。有关我们编译的各种数据集的信息,请参见数据集页面。
有关此文件的详细信息,请查看其JSON 文件。 Live/debug JSON version. Live/debug page.