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# 10 and .NET 6 – Modern Cross-Platform Development
  • Table Of Contents Toc
  • Feedback & Rating feedback
C# 10 and .NET 6 – Modern Cross-Platform Development

C# 10 and .NET 6 – Modern Cross-Platform Development - Sixth Edition

By : Mark J. Price
4.3 (62)
close
close
C# 10 and .NET 6 – Modern Cross-Platform Development

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

4.3 (62)
By: Mark J. Price

Overview of this book

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.
Table of Contents (18 chapters)
close
close
17
Index

Controlling JSON processing

There are many options for taking control of how JSON is processed, as shown in the following list:

  • Including and excluding fields.
  • Setting a casing policy.
  • Selecting a case-sensitivity policy.
  • Choosing between compact and prettified whitespace.

Let's see some in action:

  1. Use your preferred code editor to add a new console app named WorkingWithJson to the Chapter09 solution/workspace.
  2. In Visual Studio Code, select WorkingWithJson as the active OmniSharp project.
  3. In the WorkingWithJson project, in Program.cs, delete the existing code, import the two main namespaces for working with JSON, and then statically import the System.Console, System.Environment, and System.IO.Path types, as shown in the following code:
    using System.Text.Json; // JsonSerializer
    using System.Text.Json.Serialization; // [JsonInclude]
    using static System.Console;
    using static System.Environment;
    using static System...
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# 10 and .NET 6 – Modern Cross-Platform Development
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