Skip to main content
C# 10 and .NET 6 – Modern Cross-Platform Development and millions of other books are available for Amazon Kindle. Learn more

# C# 10 and .NET 6 – Modern Cross-Platform Development: Build apps, websites, and services with ASP.NET Core 6, Blazor, and EF Core 6 using Visual Studio 2022 and Visual Studio Code, 6th Edition 6th ed. Edition

by

| Mark J. Price (Author) › Visit Amazon's Mark J. Price Page Find all the books, read about the author, and more. See search results for this author

Mark J. Price (Author)
4.5 out of 5 stars 172 ratings
ISBN-13: 978-1801077361
ISBN-10: 1801077363
Why is ISBN important?
ISBN
This bar-code number lets you verify that you're getting exactly the right version or edition of a book. The 13-digit and 10-digit formats both work.
Scan an ISBN with your phone
Use the Amazon App to scan ISBNs and compare prices.
Share <Embed>
Add to book club
Loading your book clubs
There was a problem loading your book clubs. Please try again.
Not in a club? Learn more
Join or create book clubs
Choose books together
Track your books
Bring your club to Amazon Book Clubs, start a new book club and invite your friends to join, or find a club that’s right for you for free.
Explore Amazon Book Clubs

- Kindle
  $29.99
- Paperback
  $39.14 - $39.16
- Other Sellers
  from
- Other Sellers
  See all 2 versions

Buy new:
$39.16
In Stock.
Ships from and sold by Amazon.com.
Available at a lower price from other sellers that may not offer free Prime shipping.
List Price: $49.99 Details
Save: $10.83 (22%)
FREE delivery Friday, June 10
Or fastest delivery Wednesday, June 8. Order within 17 hrs 48 mins
Select delivery location
Qty:
Qty:1
C# 10 and .NET 6 – Modern... has been added to your Cart
Add to Cart
Buy Now

Available at a lower price from other sellers that may not offer free Prime shipping.

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

Extensively revised to accommodate all the latest features that come with C# 10 and .NET 6, this latest edition of our comprehensive 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. 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, and serialization. You'll build and deploy cross-platform apps, such as websites and services using ASP.NET Core.

Instead of distracting you with unnecessary application code, the first twelve chapters will teach you about C# language constructs and many of the .NET libraries through simple console applications. In later chapters, having mastered the basics, you'll then build practical applications and services using ASP.NET Core, the Model-View-Controller (MVC) pattern, and Blazor.

#### 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 XAML

#### Who this book is for

Designed for both beginners and 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, this book doesn't need you to have any C# or .NET experience. However, you should have a general understanding of programming before you jump in.

#### Table of Contents

1. Hello C#, Welcome .NET!
2. Speaking C#
3. Controlling Flow, Converting Types, and Handling Exceptions
4. Writing, Debugging, and Testing Functions
5. Building Your Own Types with Object-Oriented Programming
6. Implementing Interfaces and Inheriting Classes
7. Packaging and Distributing .NET Types
8. Working with Common .NET Types
9. Working with Files, Streams, and Serialization
10. Working with Data Using Entity Framework Core
11. Querying and Manipulating Data Using LINQ
12. Improving Performance and Scalability Using Multitasking
13. Introducing Practical Applications of C# and .NET
14. Building Websites Using ASP.NET Core Razor Pages
15. Building Websites Using the Model-View-Controller Pattern
16. Building and Consuming Web Services
17. Building User Interfaces Using Blazor
18. Bonus Content: Building and Consuming Specialized Services
19. Bonus Content: Building Mobile and Desktop Apps Using .NET MAUI
20. Bonus Content: Protecting Your Data and Applications
21. Bonus Content: Appendix – Answers to the Test Your Knowledge Questions

Read more

## Frequently bought together

- +
- +

Total price:
To see our price, add these items to your cart.
Add all three to Cart
Choose items to buy together.

- This item: C# 10 and .NET 6 – Modern Cross-Platform Development: Build apps, websites, and services with ASP.NET Core 6, Blazor, and EF Core 6 using Visual Studio 2022 and Visual Studio Code, 6th Edition
  by Mark J. Price Paperback
  $39.16
  In Stock.
  Ships from and sold by Amazon.com.
  Get it as soon as Friday, Jun 10
- C# 10 in a Nutshell: The Definitive Reference
  by Joseph Albahari Paperback
  $55.99
  In Stock.
  Ships from and sold by Amazon.com.
  Get it as soon as Friday, Jun 10
- The C# Player's Guide (5th Edition)
  by RB Whitaker Paperback
  $26.96
  In Stock.
  Ships from and sold by Amazon.com.
  Get it as soon as Friday, Jun 10

## Customers who viewed this item also viewed

Page 1 of 1 Start over Page 1 of 1
Previous page

1. The C# Player's Guide (5th Edition)
   RB Whitaker
   4.8 out of 5 stars 50
   Paperback
   #1 Best Seller
   in C# Programming
   4 offers from $25.77
2. C# 10 in a Nutshell: The Definitive Reference
   Joseph Albahari
   4.4 out of 5 stars 28
   Paperback
   30 offers from $46.46
3. Head First C#: A Learner's Guide to Real-World Programming with C# and .NET Core
   Andrew Stellman
   4.6 out of 5 stars 198
   Paperback
   30 offers from $21.99
4. Software Architecture with C# 10 and .NET 6: Develop software solutions using microservices, DevOps, EF Core, and design patterns for Azure, 3rd Edition
   Gabriel Baptista
   4.0 out of 5 stars 13
   Paperback
   5 offers from $47.49
5. Microsoft Blazor: Building Web Applications in .NET 6 and Beyond
   Peter Himschoot
   4.6 out of 5 stars 16
   Paperback
   23 offers from $40.55
6. Pro ASP.NET Core 6: Develop Cloud-Ready Web Applications Using MVC, Blazor, and Razor Pages
   Adam Freeman
   4.8 out of 5 stars 11
   Paperback
   2 offers from $59.93

Next page

## From the Publisher

Read more

##### Key Takeaways:

- Use all the new minimal code features of C# 10 and .NET 6 to write clean code for completing common tasks
- Write real code quickly without wasting your time on esoteric language features that you may never use
- Create a functional website and services using various tools and technologies with a fully working and updatable database

### What’s new in this sixth edition?

For this sixth edition, I went through the whole book andbrought everything up-to-date for C# 10 and .NET 6.

I’ve rewritten the instructions to use almost any code editor or IDE instead of Visual Studio Code, with instructions for Visual Studio 2022 and Visual Studio Code in chapter 1. The book’sGitHub repo has pre-built notebooks with code from chapters 1 to 13 so you can quickly explore code examples. Along with the 17 chapters, you’ll find 3 chapters as added content in the GitHub repo.

- Updated to cover the latest additions to C# 10 and the .NET 6 class library
- Adds coverage of Code First database models for Entity Framework Core
- Provides coverage of new library functionality like PriorityQueue, DateOnly, TimeOnly, and LINQ extension methods
- Covers more specialized types of service, such as gRPC, SignalR, OData, and GraphQL

Read more

### How does the book prepare readers to get started with C# 10 and .NET 6?

This sixth edition is a guide to learning modern C# proven practices using cross-platform .NET and a brief introduction to the main types of practical applications that you can build with them. The book is best for C# and .NET beginners, or programmers who've worked with C# in the past but feel left behind by the changes in the past few years.

This book will help you get started with C# 10 and .NET 6 by describing how to set up a development environment using any code editor that you prefer. I'll then show you how to write code in .NET Interactive Notebooks that makes it easy to explore snippets of code mixed with rich text for learning purposes.

I've also written the chapters in such a way that they willprepare you to deal with challenges and industry applications by using a mixture of conceptual descriptions, warnings about tricky areas, hands-on guided tasks, and exercises with solutions. It is practical and gets you quickly writing real code that you will benefit from every day.

Read more

### How does your book differ from other books on C# 10 and .NET 6?

My approach to writing this book was to listen to you, my readers. I used the feedback I’ve received to update this edition.

There are programming books that are thousands of pages long that aim to be comprehensive references for the C# language, .NET libraries, app models like websites, services, and desktop, and mobile apps.

This book is different. It is concise and aims to be a brisk, fun read packed with practical hands-on walkthroughs of each subject. The breadth of the overarching narrative comes at the cost of some depth, but you will find many signposts to explore further if you wish.

I believe in the maxim, “Show, don’t tell”. After a short explanation, I like to jump right into example code that the reader can type themselves, run, and see the results. I also believe in seeing multiple examples that are similar but different so that you build up a clear model of that topic and the subtle reasons why there are often multiple ways to perform a task.

Finally, I’ve pointed out the cool corners and gotchas of C# and .NET, so you can impress colleagues and get productive quickly.

#### Key Topics Covered:

- Hello C#, Welcome .NET!
- Controlling Flow, Converting Types, and Handling Exceptions
- Building Your Own Types with Object-Oriented Programming
- Improving Performance and Scalability Using Multitasking
- Introducing Practical Applications of C# and .NET
- Building and Consuming Web Services
- Building User Interfaces Using Blazor
- ...and more!

Read more

### Using C# and .NET to build websites on both the server & client side

Read more

## Editorial Reviews

### Review

"Every single edition of his book can be considered memorable. The care that Mark takes while describing each detail in the C# world is inspiring. So, I wouldn’t say this is a recommendation, but a message thanking Mark for all the work he’s been doing over the years to deliver incredible material to the community!" - Gabriel Lara Baptista, Author of Software Architecture with C# 9 and .NET 5, Professor and Software Architect for more than 20 years

"Mark's sixth edition of the book helps you develop C# skills, covering fundamentals to advanced topics—all while teaching you how to create cross-platform and modern apps, websites, and services using .NET 6." - David Pine, Senior Content Developer, Microsoft

“Mark has written an extremely easy-to-read guide to C# and .NET that uses tons of simple code examples to demonstrate various concepts. It's great for both beginner and seasoned developers since the chapters can be read in any order.” - Toi B. Wright, Author of Blazor WebAssembly by Example, 17-time Microsoft MVP in Developer Technologies

"This is not a regular book, but a whole development experience. I am impressed by how many topics you can find inside, but it’s still compact, with just enough information to get started. This is the book that I wanted when I started to learn .NET and the book I will recommend to my students." - Daniel Costea, Microsoft MVP

### 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. Currently, Mark creates and delivers training courses for Optimizely's Digital Experience Platform (DXP). Mark holds a Computer Science BSc. Hons. Degree.

Start reading C# 10 and .NET 6 – Modern Cross-Platform Development on your Kindle in under a minute.
Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Learn skills from picture taking to sushi making
Amazon Explore Browse now

## Product details

- Publisher ‏ : ‎ Packt Publishing; 6th ed. edition (November 9, 2021)
- Language ‏ : ‎ English
- Paperback ‏ : ‎ 824 pages
- ISBN-10 ‏ : ‎ 1801077363
- ISBN-13 ‏ : ‎ 978-1801077361
- Item Weight ‏ : ‎ 3.06 pounds
- Dimensions ‏ : ‎ 7.5 x 1.86 x 9.25 inches

- Best Sellers Rank: #22,258 in Books (See Top 100 in Books)
  - #2 in Cross-platform Software Development
  - #2 in Microsoft .NET
  - #3 in Mobile App Development & Programming

- Customer Reviews:
  4.5 out of 5 stars 172 ratings

## About the author

Follow authors to get new release updates, plus improved recommendations.

## Mark J. Price

Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

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

4.5 out of 5 stars
4.5 out of 5
172 global ratings

5 star |  | 71%
4 star |  | 17%
3 star |  | 6%
2 star |  | 3%
1 star |  | 4%

How customer reviews and ratings work

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.

Anthony De Mello
3.0 out of 5 stars I like the style of writing, but the author is still stuck in .NET 5 way of doing things
Reviewed in the United States on November 25, 2021
Verified Purchase
I like the way the author takes me through each topic. However, the title is C#10 and .NET 6, so I expected .NET 6 syntax. However, the author is doing things in .NET 5 way and I found myself having to keep looking up Microsoft or other .NET 6 syntax sources just to make it work. That, I believe, is a serious flaw and makes the title misleading. However, even then, there's no other book that even comes close to this one.
Read more
25 people found this helpful
Helpful
Report abuse
WHOM
1.0 out of 5 stars No MAUI !? Just some news about the release date is postponed.
Reviewed in the United States on December 2, 2021
Verified Purchase
Yes, MAUI release date is postponed, but the preview version has existed for a long time. This book claimed that it has a section for MAUI+XAML, but I didn't see any specific examples or details about MAUI, its names spaces, migration to MAUI, or even how we can implement new project by using MAUI interfaces. Please don't do this! Some other sections also were so short with no useful details. Overall, some parts of the book are great, but some parts are more of a title than real helpful information. MAUI thing is so disappointing. If I missed anything, please contact me and let me know what page I have to look into for the MAUI details. I will update my review if I find out that MAUI details are in this book and I missed them.
Read more
12 people found this helpful
Helpful
Report abuse
Andrew Comeau
5.0 out of 5 stars Clearly written and helpful for someone diving back into C#
Reviewed in the United States on November 21, 2021
Verified Purchase
I can't say if this should be someone's first book on C# but, if you already have some knowledge of programming, I can completely recommend it.
I'm about a fifth of the way through the book as I'm refreshing my C# skills after a couple of years away and updating to .NET 6. I've already learned things I never knew before or didn't fully understand. The author's style is down-to-earth and he makes the material very accessible.
I'd looked at using Visual Studio Code before but could never get into it when I already knew how to work with VS Community. This book takes you step by step through it and I now enjoy working with it.
Mark Price also goes into some of the "gotchas" in the language like the dangers of using the Double type and C#'s use of Banker's rounding. I understand bitwise operations better than I did before. He also points out best practices that come in very handy.
I'm looking forward to finishing the book but I can already say it's an excellent resource.
Read more
6 people found this helpful
Helpful
Report abuse
Fiddlethumbs
3.0 out of 5 stars Code samples in tiny print, ink is a little vague
Reviewed in the United States on December 9, 2021
Verified Purchase
I'm just getting started with the book, but the code samples that seem to be part of a screen shot result in tiny text to try to see. This is exacerbated by the quality of the inking being less than desirable. There are some code samples that are regular text, and those are easier to read.
I will say that some screenshots of the project creation screens would be helpful, instead of just trying to describe it in text, and the text not totally mirroring the fields on the screen.
Desktop apps covered in the bonus pdf that is available for download from GitHub.
Read more
3 people found this helpful
Helpful
Report abuse
John Bowman
5.0 out of 5 stars An excellent resource
Reviewed in the United States on January 24, 2022
Verified Purchase
Finishing up chapter 8 - an update:
Mark Price' presents material in a logical and, usually, easy to follow manner. He covers a breadth of material and consequently can't detail it all, but usually provides pointers to resources for those wanting more. I can't imagine a better resource for someone with a little background but in need of moving beyond brief introductions into the rich world of C# and .Net6. I frequently get excited by the practical way he presents information that I anticipate utilizing on some personal projects. He makes available an excellent errata resource. Two or three times, Mark gave an example which worked well, but I had difficulty grasping why. I suspect that more my learning challenge than his writing. I am more than three quarters of a century old. Still, I'm high on Mark and this book.
Earlier I wrote after working through chapter 3:
I'm comparing this book to two other book purchase on the subject of C#. (I'm trying to teach myself how to program.) The others did a good job introducing various aspects of the language and how to program. I'm now into chapter three of this book and have found a wealth of information easily accessible and retrieval in the future. I've become a fan of Mark Price and his thoroughness. Entering this book I find additional electronic resources that he makes available which add to the richness of volume. I do not see it as an entry book, but at least an intermediate level. I'm loving the learning.
Read more
One person found this helpful
Helpful
Report abuse
james hilton
3.0 out of 5 stars It depends
Reviewed in the United States on March 20, 2022
Verified Purchase
I have been developing for over 20 years, so my expectations are different than a new developer. If you are new to the game, then this is a good starting book for you in my opinion. I was really looking more for a "whats new" in .Net 6 than an C# / .Net overview. This book went through all of the basics, but not to the level as you would get in a 1,400 pager. Blazer is also kind of a big deal, but the book really only spent a chapter on it.
Read more
3 people found this helpful
Helpful
Report abuse
John Peters
4.0 out of 5 stars Good but...
Reviewed in the United States on January 2, 2022
Verified Purchase
Too many fundamentals for experienced .net folks. The Blazor stuff started 700+ pages in, which was the only reason I bought this book.
Read more
3 people found this helpful
Helpful
Report abuse
YourBuddyToo
4.0 out of 5 stars Lots of content, not always easy to use as a reference.
Reviewed in the United States on January 12, 2022
Verified Purchase
Has lots of good content with simple to follow examples. My complaint is, now that I have read the book, I know there are topics I want to revisit but it is difficult to find the topic again; the index is too thin. As an example, there is no index reference for 'overload'.
The book oversells its coverage of MAUI. The book admits in the forward that MAUI was not released in time to include in the book but not all of the content in the book was likewise edited. For example, the back cover states "Build cross-platform apps using .NET MAUI and XAML"; not really true with respect to MAUI.
Read more
One person found this helpful
Helpful
Report abuse

### Top reviews from other countries

Translate all reviews to English
Ben Zi
2.0 out of 5 stars Not for everyone
Reviewed in the United Kingdom on January 13, 2022
Verified Purchase
Unfortunately despite its massive size, there are very shallow touches on the advanced topics. If you are a beginner and you are looking to get into intermediate concepts of C# and .Net it is a great manual. If you are looking for advanced topics like Generics, Delegates, Reflections and etc... this might not be the one for you.
Read more
4 people found this helpful
Report abuse
Amazon Customer
5.0 out of 5 stars Great - But wouldn’t say for total beginners
Reviewed in the United Kingdom on March 30, 2022
Verified Purchase
This is a great book for intermediate topics. For when you have read and understand the basics and need to move to the next stage.
Im only halfway through but I’d guess that it will give a good idea of what sort of advanced topic you want to study further. It covers a lot of topics but some only briefly.
Read more
Report abuse
Victor Owotunse
5.0 out of 5 stars A really good book
Reviewed in the United Kingdom on April 17, 2022
Verified Purchase
Teaches the fundamental of C# programming
Read more
Report abuse
Denis
5.0 out of 5 stars Good book.
Reviewed in the United Kingdom on May 7, 2022
Verified Purchase
Great book if you're interested in learning C#.
Read more
Report abuse
unknown_user
5.0 out of 5 stars Sehr zu empfehlen
Reviewed in Germany on January 8, 2022
Verified Purchase
Da es momentan zum Thema "Blazor" noch kaum Bücher gibt, viel meine Wahl eher zufällig bis zwangsläufig auf das von Mark Price.
Mittlerweile habe ich das Buch vollständig gelesen:
* Die ersten 400 Seiten beziehen sich auf Basiswissen von C# und VisualStudio.
Für Einsteiger ist dies super, für Fortgeschrittene jedoch wenig neues.
* Dann folgen rund 100 Seiten sehr hilfreiche und gut komprimierte Infos zum Entity Framework Core und LINQ.
Dies dürfte für alle Leser sehr nützlich sein.
* Auf leider nur 200 Seiten wird auf Blazor (Server & WebAssembly) behandelt.
Blazor war mein Hauptmotivation zum Kauf - leider wird die erhofften Thementiefe nicht erfüllt. Umfangreichere Formularoberflächen werden ebenso vergeblich gesucht, wie Themengebiete zur Authentifizierung.
Zu finden sind aber ein sehr guter Überblick und Einstieg in die Blazorwelt, sowie viele Tipps und Tricks.
Auch die Basis um Frameworks wie Radzen & Co sinnvoll zu nutzen, wird grundsätzlich gelegt.
Von Anfang bis Ende ist ein durchdachter, roter Faden erkennbar.
Die praxisnahmen Beispiele bauen hervorragend aufeinander auf, sind möglichst einfach erklärt und so jederzeit verständlich nachvollziehbar.
Auch sind sowohl das Buch als auch der Code sehr, sehr sorgenfältig korrekturgelesen und durchdacht.
So ist durchgehend zu merken, dass Mark Price die Themen wirklich verstanden und nicht(!) nur mehr oder weniger willkürlich etwas lückenfüllend zusammenkopiert hat.
Ein Kritikpunkt ist, dass nach jedem Kapitel Kontrollfragen gestellt werden, jedoch keine Musterantworten folgen.
Zu Fragen mit Programmieraufgaben, sind jedoch Beispielcode vorhanden.
Insgesamt kann ich dieses leicht verständliche und lehrreiche Buch durchaus empfehlen.
Read more
4 people found this helpful
Report abuse
Translate review to English

Your recently viewed items and featured recommendations