Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals
C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals

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 , Seventh Edition

eBook
€8.99 €29.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals

Speaking C#

This chapter is all about the basics of the C# programming language. Over the course of this chapter, you’ll learn how to write statements using the grammar of C#, as well as being introduced to some of the common vocabulary that you will use every day. In addition to this, by the end of the chapter, you’ll feel confident in knowing how to temporarily store and work with information in your computer’s memory.

This chapter covers the following topics:

  • Introducing the C# language
  • Understanding C# grammar and vocabulary
  • Working with variables
  • Exploring more about console apps
  • Understanding async and await
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • 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

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.

Who is this book 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.

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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 08, 2022
Length: 818 pages
Edition : 7th
Language : English
ISBN-13 : 9781803237800
Vendor :
Microsoft
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Nov 08, 2022
Length: 818 pages
Edition : 7th
Language : English
ISBN-13 : 9781803237800
Vendor :
Microsoft
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 143.97
C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals
€37.99
Apps and Services with .NET 7
€37.99
Solutions Architect's Handbook
€67.99
Total 143.97 Stars icon
Banner background image

Table of Contents

18 Chapters
Hello, C#! Welcome, .NET! Chevron down icon Chevron up icon
Speaking C# Chevron down icon Chevron up icon
Controlling Flow, Converting Types, and Handling Exceptions Chevron down icon Chevron up icon
Writing, Debugging, and Testing Functions Chevron down icon Chevron up icon
Building Your Own Types with Object-Oriented Programming Chevron down icon Chevron up icon
Implementing Interfaces and Inheriting Classes Chevron down icon Chevron up icon
Packaging and Distributing .NET Types Chevron down icon Chevron up icon
Working with Common .NET Types Chevron down icon Chevron up icon
Working with Files, Streams, and Serialization Chevron down icon Chevron up icon
Working with Data Using Entity Framework Core Chevron down icon Chevron up icon
Querying and Manipulating Data Using LINQ Chevron down icon Chevron up icon
Introducing Web Development Using ASP.NET Core Chevron down icon Chevron up icon
Building Websites Using ASP.NET Core Razor Pages Chevron down icon Chevron up icon
Building Websites Using the Model-View-Controller Pattern Chevron down icon Chevron up icon
Building and Consuming Web Services Chevron down icon Chevron up icon
Building User Interfaces Using Blazor Chevron down icon Chevron up icon
Epilogue Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.1
(54 Ratings)
5 star 63%
4 star 9.3%
3 star 16.7%
2 star 1.9%
1 star 9.3%
Filter icon Filter
Top Reviews

Filter reviews by




Prashant Oct 25, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Each and Every Chapter Contains Tons and Tons On Knowledge.
Subscriber review Packt
Troy Martin Nov 08, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I've been a self-taught programmer for the last 5+ years and have read/skimmed countless programming books in my time. I'm well-versed in several languages and recently decided to become more proficient with C# as well as getting caught up to "modern" C# (I learned C# when it was version 7).Mark Price's book is nothing short of a god-send for me. This has been one of the best programming books I've ever read and most certainly the best for the language. While this may not be great for the absolute newbie programmer (it's a very concise book), anyone with a little bit of skill in any language should find themselves right at home. Mark does a wonderful job completely covering not only the fundamentals of the language but also diving into practical applications along with website development and services like ASP.NET, EF Core and more!If you've ever wanted to learn C# (or just programming in general), this is the book I would point anyone to. Mark is an expert in the field and the Discord server for the book has been its own treat with very welcoming and friendly programmers to assist / discuss topics in the book. After finishing this book, you will have all the knowledge you need to develop your own websites and applications with the cross-platform nature that modern C# .NET affords. Get up to speed with the newest C# language features and become confident in your abilities with this book!Note that there is a follow-up book to this one, Apps and Services with .NET 7. I HIGHLY recommend buying the two as a set as the follow-up book directly builds off of what was learned in the 'first book' and includes a recipe-book-like approach to various real-world projects.
Amazon Verified review Amazon
Amazon Customer Jul 28, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I liked the option of getting a PDF version of the book. I liked how rationally layed out the content is and how very complete it is. A really great job!
Amazon Verified review Amazon
William Senn Nov 23, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book is exceptional in that it concentrates on the language and not the IDE. The examples and projects in the first 11 chapters are written as Console applications! This gives the author great flexibility to concentrate on language without concern for UI elements. The vast majority of C# texts out there are either Language References or Windows Form guides, not this one. It is very pragmatically focused. The author starts by giving the reader instructions on installing VS2022 for Windows (works for VS2019 and VS for Mac) as well, VS Code which works on Windows, Linux, Mac, and the SDKs, which also work on Windows, Mac, and Linux. He then delves into how to create multiple projects with the tools. In addition, he walks the user through installing and using .NET Interactive Notebooks (now Polyglot Notebooks) which are basically Jupyter for C# in VS Code - amazing first chapter. With this foundation, the reader is poised to jump into C# and .NET, from C# 8 and.NET Core 3.1 to C# 11 and .NET 7 using nothing more than a command line and text editor, should the reader desire to code that way.After the introductory setup chapter, the author jumps into the language for the next 10 chapters. The last 6 chapters cover the basics of web apps and services... just enough to create working applications and services. The author covers these topics in much greater detail in his other book "Apps and Services with .NET" which, if I have the opportunity to read soon, I very much look forward to.Are there weaknesses? Hmm... sure, but I consider most of what I perceive as weaknesses to be design choices and chalk them up to the author's preferences and style. This is the seventh edition of the text and the author has paid attention to the details.One thing that's noticeable and much appreciated by me is that the author leverages new features of the language expertly and adroitly while calling out there use. This is substantially different from those authors who cut new editions with little effort to embrace what's new.Great book and very helpful approach for readers wanting to learn HOW to program in C# on their ACTUAL computers!
Amazon Verified review Amazon
Rufus Archibald Dec 02, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The material covered was thorough and concise. The examples were good, code was clean and illustrated the topic clearly. Chapters were organized well and in a good sequence to advance the narrative in a logical way. This is a great book to learn from and I highly recommend it for both beginners and seasoned professionals to have around as reference material. It will certainly remain in my library for some time to come.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.