Other Sellers on Amazon
& FREE Shipping
91% positive over last 12 months
Usually ships within 4 to 5 days.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals: Start building websites and services with ASP.NET Core 7, Blazor, and EF Core 7, 7th Edition 7th ed. Edition
| Price | New from | Used from |
- Kindle
$31.19 Read with Our Free App - Paperback
$44.54 - $44.995 Used from $44.54 6 New from $44.99
Enhance your purchase
An accessible guide for beginner-to-intermediate programmers to concepts, real-world applications, and latest features of C# 11 and .NET 7, 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.
Key Features
- Explore the newest additions to C# 11, the .NET 7 class libraries, and Entity Framework Core 7
- Create professional websites and services with ASP.NET Core 7 and Blazor
- Build your confidence with step-by-step code examples and tips for best practices
Book Description
Extensively revised to accommodate the latest features that come with C# 11 and .NET 7, this latest edition of our guide will get you coding in C# with confidence.
You'll learn object-oriented programming, writing, testing, and debugging functions, implementing interfaces, and inheriting classes. Next, you'll take on .NET APIs for performing tasks like managing and querying data, working with the filesystem, and serialization. As you progress, you'll also explore examples of cross-platform projects you can build and deploy, such as websites and services using ASP.NET Core.
Instead of distracting you with unnecessary graphical user interface code, the first eleven chapters will teach you about C# language constructs and many of the .NET libraries through simple console applications. Having mastered the basics, you'll then start building websites, web services, and browser apps.
By the end of this book, you'll be able to create rich web experiences and have a solid grasp of object-oriented programming that you can build upon.
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
- Write, test, and debug functions
- Query and manipulate data using LINQ
- Integrate and update databases in your apps using Entity Framework Core models
- Build and consume powerful services using the latest technologies, including Web API and Minimal API
For .NET 6 developers:
- C# 11 can be used with .NET 6, including features like raw string literals
- EF Core 7 targets .NET 6, so you can benefit from its new features like ExecuteUpdate and ExecuteDelete for more efficient data modifications
Who this book is for
This book is primarily for beginners, but 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 past few years will also find plenty of useful information in it. Prior exposure to C# or .NET is not a prerequisite, but you should have a general understanding of programming before you jump in.
If you already have some C# and .NET skills and want to focus on developing apps, we recommend that you pick up Mark's other .NET book, Apps and Services with .NET 7, instead.
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 Web Development Using ASP.NET Core
- 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
- ISBN-101803237805
- ISBN-13978-1803237800
- Edition7th ed.
- PublisherPackt Publishing
- Publication dateNovember 8, 2022
- LanguageEnglish
- Dimensions7.5 x 1.85 x 9.25 inches
- Print length818 pages
Customers who viewed this item also viewed
From the Publisher
Key Features:
- A tried-and-tested learning curve that provides a brisk, fun read
- Detailed instructions for the most popular code editors, Visual Studio 2022 and Visual Studio Code
- Complete solutions to coding tasks, review questions, and exercises on the book’s GitHub repository
What approach does this book take to get readers started with C# 11 and .NET 7?
One of the key benefits is that it offers great value by balancing just the right amount of breadth with depth, teaching you a broad range of skills and technologies that you’ll be able to implement in the real world.
I briefly introduce a concept, like a C# language feature, a .NET API, or a web development task, and then take you step-by-step through writing simple code and running it to see the feature in action. Each chapter ends with review questions and exercises to complete.
- Designed for those new to programming or trying a career change
- Gain coding experience and pragmatic tips that impact your daily productivity and help you get the job you want
- Join the Discord channel for the book to interact with the author and other readers and get your trickier questions answered
What’s new in this seventh edition?
For this seventh edition, I went through the whole book and brought everything up to date for C# 11 and .NET 7.
This book covers some of the most useful new C# 11 features. For example, list patterns extend existing pattern matching, like type and property matching, to match elements in a sequence like a list or an array. My personal favorite new C# 11 feature is raw string literals, which make it much easier to define text values that contain whitespace, quotes, and other special characters without requiring escape sequences.
As usual with a major new version of .NET, there are many performance improvements that you will benefit from without needing to change your code. Tar archive support has been added, and there is better support for Linux filesystems. JSON serialization now has better polymorphism support and more convenience methods like ReadExactly. Probably the most consequential addition to ASP.NET Core 7 is the return of output caching.
What should our readers’ next steps be after this book? What learning path would you recommend?
After learning the fundamentals of modern cross-platform development using C# 11 and .NET 7 and putting them into practice with web development basics using ASP.NET Core, the next step is to expand those skills by reading my second book, Apps and Services with .NET 7.
There are many technologies for common programming tasks. My book will get you started with all of them, so it is the best value for your time and money. Each chapter introduces a technology; you learn the basic concepts and capabilities and implement some of the most important parts. Once you’ve built a project yourself and seen the tech in action, you can then turn to the official documentation to continue learning, or look at an advanced book.
The hardest challenge for software developers is keeping up with all the changes and new tech in the industry. You often do not know if a technology is something you should learn or that you would enjoy until you’ve learned a bit about it. That’s where my books fill the gap.
Table of Contents:
- Controlling Flow, Converting Types, and Handling Exceptions
- Building Your Own Types with Object-Oriented Programming
- Writing, Debugging, and Testing Functions
- Working with Data Using Entity Framework Core
- Introducing Web Development Using ASP.NET Core
- Building and Consuming Web Services
- Building User Interfaces Using Blazor
- ...and more!
|
|
|
|---|---|---|
| C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals | Apps and Services with .NET 7 | |
| Page count | 818 pages | 814 pages |
| Edition | Seventh | First |
| Target audience | Beginner-to-intermediate in the C# language, .NET libraries, and ASP.NET Core web development | Beginner-to-intermediate in building apps and services |
| Prerequisites | No prior exposure to C# or .NET, but a general understanding of programming is helpful | Intermediate-level C#, .NET, and ASP.NET Core (introduced in the first book) |
| Topics covered | C# language, .NET libraries, ASP.NET Core, object-oriented programming, testing, EF Core, and more | Common .NET-adjacent technologies like Cosmos DB, GraphQL, .NET MAUI, Blazor, gRPC, and more |
Editorial Reviews
Review
"This book is a comprehensive guide for developers exploring the world of .NET, and Mark makes the journey more enjoyable and efficient by introducing lots of best practices and code samples. This is the book I recommend to my students to maximize their start."
--Daniel Costea, Microsoft MVP, Developer Technologies
"A very well-done book, complete with examples with everything you need to learn how to write applications with the new .NET 7 framework. Very interesting parts on Entity Framework 7 and the development of web applications, both ASP.NET and Blazor."
--Luca Congiu, Cloud Solution Architect
"An outstanding resource for those learning C# and for those of us who've been writing in C# for 20 years. One of Mark's great talents is to provide accurate and comprehensive coverage of topics without reading like technical documentation and language lawyering. A terrific integration of the latest updates to C# rather than tacking the new things onto older code."
--Jesse Liberty, Microsoft MVP, Xamarin MVP, Author
About the Author
Mark J. Price is a Microsoft Specialist: Programming in C# and Architecting Microsoft Azure Solutions, with over 20 years' experience. Since 1993, he has passed more than 80 Microsoft programming exams and specializes in preparing others to pass them. Between 2001 and 2003, Mark was employed to write official courseware for Microsoft in Redmond, USA. His team wrote the first training courses for C# while it was still an early alpha version. While with Microsoft, he taught "train-the-trainer" classes to get other MCTs up-to-speed on C# and .NET. Mark holds a Computer Science BSc. Hons. Degree.
Product details
- Publisher : Packt Publishing; 7th ed. edition (November 8, 2022)
- Language : English
- Paperback : 818 pages
- ISBN-10 : 1803237805
- ISBN-13 : 978-1803237800
- Item Weight : 3.04 pounds
- Dimensions : 7.5 x 1.85 x 9.25 inches
- Best Sellers Rank: #20,714 in Books (See Top 100 in Books)
- #1 in C# Programming (Books)
- #1 in ASP.NET Programming
- #1 in Microsoft .NET
- Customer Reviews:
About the author

Mark J Price is a former Microsoft Certified Trainer (MCT) and current Microsoft Specialist: Programming in C# and Architecting Microsoft Azure Solutions, with more than 20 years' of educational and programming experience.
Since 1993 Mark has passed more than 80 Microsoft programming exams and specializes in preparing others to pass them too. His students range from professionals with decades of experience to 16-year-old apprentices with none. Mark successfully guides all of them by combining educational skills with real-world experience consulting and developing systems for enterprises worldwide.
Between 2001 and 2003 Mark was employed full-time to write official courseware for Microsoft in Redmond, USA. Mark's team wrote the first training courses for C# while it was still an early alpha version. While with Microsoft he taught "train-the-trainer" classes to get other MCTs up-to-speed on C# and .NET.
Currently, Mark creates and delivers training courses for Episerver's Digital Experience Platform, the best .NET CMS for Digital Marketing and E-commerce.
In 2010 Mark studied for a Post-Graduate Certificate in Education (PGCE). He taught GCSE and A-Level mathematics in two London secondary schools. Mark holds a Computer Science BSc. Hons. Degree from the University of Bristol, UK.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
The book is a good fit for new developers but also for .NET developers with high experience.
The only concerns that I have with this book is C# 11 feature, in this kind of books I hope to find a sections just to understand what the new features in C# 11 and .NET 7 are. With this approach a .NET developer can easily get the knowledge about this changes (including each technology EF, Blazor, ASP.NET ).
I have read the previous two editions of the book. Mark has put a lot of effort into this 7th Edition, and I continue to be impressed. It takes a lot of effort to update a technology book. You not only add the new technology coverage, but Mark takes the time to review existing content to improve it.
The 6th edition: #1 Best Seller in C# Programming. #1 Best Seller in ASP.NET Programming. #1 Best Seller in Microsoft .NET.
The 7th (this) edition: #1 New Release in C# Programming.
It gives you everything you need to start programming C# applications and services. For experienced devs, it gets you up to speed on what’s new and Mark provides tables to show you which sections can be skipped based on what you already know and which sections to jump to for what’s new in C# 11 and .NET 7. But you may be surprised to learn something new even in those sections you think you know.
Mark realizes that we learn best by getting our hands on the keyboard, typing, and running code. So, he includes a practice and exploring section at the end of each chapter. The best way to learn is by typing everything in instead of just copy/paste. But if you get stuck he includes all the source code on GitHub.
Mark walks through examples using:
• Visual Studio
• Visual Studio Code
• Dotnet CLI
The book covers the full range of C# programming concepts and app development including building ASP.NET Core websites (with Razor Pages and MVC), web APIs, Blazor server and WebAssembly apps, mobile apps, desktop apps, interacting with files and databases with EF Core 7. He really has included all the essential concepts and topics to get you going quickly.
Mark has many years of experience, with many certifications and while at Microsoft he taught “train-the-trainer” classes. This experience comes through in the book. He does a great job of not only explaining concepts but sharing the ‘why’ behind his explanations and decisions. It is like you are in one of Mark’s classes and he is there with you walking you through each section. And it is like he has anticipated each question you would have and provided step by step instructions to answer them.
Packt continues to put out great books and this one is no exception. I encourage you to pick up a copy. Highly recommended!
This seventh edition contains 16 chapters: 1-2 introduce C# & .NET; 3-6 address essential programming; 7-8 focus on managing .NET types; 9 relates to file streams and serialization; 10-11 demonstrate how to deal with data; and 12-16 center on Web development. In addition, there is access to a 17th chapter which explores possible next steps for the reader’s development.
The descriptors of the book label it for the beginner and the intermediate learners of C#. I feel comfortable speaking from the perspective of the former. It was immensely helpful because it gave me ways to understand the exercises I typed, proofed and ran. Price makes available all of the files he asks learners to type which are helpful in checking our work, but I believe it was in the actual typing and working my way through the book that illuminated the richness of C#. As I worked through the material I encountered techniques that neither of my adult children, experienced programmers, knew about; I was tickled to pass on these techniques.
Another factor in the beauty of this book is the author’s request for cooperative growth. Given the 873 or so pages of the book, there are bound to be rare typos. Life happens. Secondly, we all learn in different ways. Mark Price opens up ways for readers to provide suggestions for how he might have improved his presentation or where an error might be found. These he then posts and makes available to other readers. It made the reading and exercising of his book come alive and dynamic. Suggestions made for the sixth edition have been addressed and improved in this seventh edition. It has been interesting to observe the evolution from .NET6 to .NET7 and techniques which simplify some of the previously more routine coding. These are not always highlighted and changes, presumably so as not to distract the learner from mastering the process rather than identifying each change from previous releases.
There is one place where I believe it could have been tightened up with important basic information for clarity's sake, the relationship between the various .Net nomenclatures (pgs 10-15). While there is a lot of great and helpful historical information, I remain fuzzy as to the basic relationships, functions, and interactions between .NET Framework and .NET SDK, .NET Core, etc. This is but one issue, and the problem may be more with my ability to grasp the issue than the book’s descriptions. I did my best with this section and then moved on. As far as learning the use of .NET my weak understanding here did not seem to hamper my learning and completing the book. So for this review, I'd rather focus upon the broader strokes of clarity Mark Price provides as he unfolds the utilization of C# and .NET7. This book is highly informative, readable, and usable. It will be a useful reference resource in the future as well.
Overall, Mark Price does a great job guiding the learner through the process of writing programs which teach in a workbook fashion, while his book flags additional avenues of learning available on the Web. In this, he gives clues on how best to access them: Stack Overflow, Scott Hanselman’s videos, and the like. The book is peppered with “Good Practice” suggestions. He gently moves the reader from learning of simple to more complex programming techniques.
I’m eager to also get the companion book, Apps and Services with .NET 7, in order to explore in greater detail issues related to data bases, libraries, services, and user interfaces.











