Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals
  • Table Of Contents Toc
  • Feedback & Rating feedback
C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals

C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals - Tenth Edition

By : Mark J. Price
5 (1)
close
close
C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals

C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals

5 (1)
By: Mark J. Price

Overview of this book

C# and .NET remain the backbone of modern enterprise and cross-platform development. Whether you're building high-performance websites and services on Windows or Linux or desktop apps that run on Windows and macOS, the .NET ecosystem provides a mature yet constantly evolving foundation for software development. With the release of C# 14 and .NET 10, developers now have access to a more powerful toolset. This tenth edition has been thoroughly updated to reflect the latest features. It begins with a deep grounding in object-oriented programming and then walks you through building, testing, and debugging functions, as well as managing resources with .NET libraries. You'll work with data using LINQ and serialization, handle filesystem operations, and integrate new features like numerical string comparisons and OrderedDictionary improvements. This book explains C# 14 updates, such as field modifiers, partial events, and instance constructors, in a real-world context. It also guides you in building practical projects with ASP.NET Core 10, exploring Blazor and Minimal API web services that support AOT compilation—ideal for microservices and containers. By the end of the book, you’ll be ready to ship professional websites, services, and tools across platforms, confident in your ability to build software that's maintainable, efficient, and aligned with modern .NET development.
Table of Contents (19 chapters)
close
close
18
Index

Practicing and exploring

Let’s now test your knowledge and understanding by trying to answer some questions, getting some hands-on practice, and going into the topics covered throughout this chapter in greater detail.

All exercises in the Practicing and exploring sections at the end of each chapter are optional. You do not have to complete them to continue with the rest of the book.

Exercise 1.1 – Online material

Online material can be extra content written by me for this book, or it can be references to content created by Microsoft or third parties.

Current versions of .NET

You can check what the latest version of .NET is for various platforms and what is officially supported at the following link: https://versionsof.net.

If you need to know more about support for the legacy .NET Framework, you can read about it at the following link: https://learn.microsoft.com/en-us/lifecycle/products/microsoft-net-framework.

Upgrade to a new .NET version

.NET releases new versions annually. Some developers begin upgrading as soon as a new version drops, while others prefer to wait until their current version reaches the end of support. Upgrading involves several important considerations that you can read about at the following link:

https://learn.microsoft.com/en-us/dotnet/core/install/upgrade.

freeCodeCamp and C# certification

For many years, Microsoft had an exam for C# 5, Exam 70-483: Programming in C#. I taught hundreds of developers the skills needed to get qualified and pass it. Sadly, that exam was retired a few years ago.

In August 2023, Microsoft announced a new foundational certification for C# alongside a free 35-hour online course. You can read more about how to qualify for the certification at the following link:

https://www.freecodecamp.org/learn/foundational-c-sharp-with-microsoft/.

You can also sign up for the C# certification here: https://aka.ms/learningseries/csharp/signup.

Explore Polyglot Notebooks

Complete the following online-only section to explore how you can use Polyglot Notebooks with its .NET Interactive engine:

https://github.com/markjprice/cs14net10/blob/main/docs/ch01-polyglot-notebooks.md.

Windows development

This book is about modern cross-platform development. But what about graphical user interface (GUI) development, especially for Windows?

You can read an article discussing this at the following link:

https://visualstudiomagazine.com/articles/2024/02/13/desktop-dev.aspx.

C# versus other languages

Even Microsoft does not use C# and .NET for all its own development needs. You can read an interesting discussion about C# and Rust at the following link:

https://www.reddit.com/r/dotnet/comments/1aezqmg/comment/ko8lnf2/.

The key quote at the preceding Reddit link is this:

“There’s been a lot of hype around Rust, and for good reason. But it’s a system language. It’s not like Microsoft is about to go rewrite millions and millions of lines of code and toss out C# (for anyone getting nervous ). They’re just being pragmatic and using an effective tool for the job.”

Free computer science course

Harvard CS50: Introduction to Computer Science:

https://pll.harvard.edu/course/cs50-introduction-computer-science

.NET newsletters

There are email newsletters that you can subscribe to get daily or weekly updates, hints, and tips. Some of the better ones include the following:

Copilot articles

Learn about the many Copilot tools available at these links:

Exercise 1.2 – Practice exercises

The following practice exercises will go deeper into the topics for this chapter.

Practice C# anywhere with a browser

You don’t need to download and install VS Code or even Visual Studio to write C#. You can start coding online at any of the following links:

Future versions of .NET

For more about using .NET 11 with this book, please see the following link: https://github.com/markjprice/cs14net10/blob/main/docs/dotnet11.md.

Exercise 1.3 – Test your knowledge

Try to answer the following questions, remembering that although most answers can be found in this chapter, you should do some online research or code writing to answer others:

  1. Is Visual Studio better than VS Code?
  2. Are .NET 5 and later versions better than .NET Framework?
  3. What is .NET Standard, and why is it still important?
  4. Why can a programmer use different languages (for example, C# and F#) to write applications that run on .NET?
  5. What is a top-level program, and how do you access any command-line arguments?
  6. What is the name of the entry point method of a .NET console app, and how should it be explicitly declared if you are not using the top-level program feature?
  7. What namespace is the Program class defined in with a top-level program?
  8. Where would you look for help for a C# keyword?
  9. Where would you look first for solutions to common programming problems?
  10. What should you do after getting AI to write code for you?

    Appendix A, Answers to the Test Your Knowledge Questions, is available to download from a link in the README file in the GitHub repository: https://github.com/markjprice/cs14net10.

    Appendix C, Looking For Help, is a good reference that will help you answer some of the preceding questions.

Exercise 1.4 – Explore topics

A printed book is a curated experience. I have tried to find the right balance of topics to include in this book. Other content that I have written can be found in the GitHub repository for this book.

I believe that this book covers all the fundamental knowledge and skills a C# and .NET developer should have or be aware of. Some longer examples are best included as links to Microsoft documentation or third-party article authors.

Use the links on the following page to learn more details about the topics covered in this chapter:

https://github.com/markjprice/cs14net10/blob/main/docs/book-links.md#chapter-1---hello-c-welcome-net.

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon