Skip to main content

Steve Gordon – Code with Steve

  • About Me
  • Contact
  • Subscribe

Playing with System.Text.Json Source Generators

16th August 202125th January 2024 Steve Gordon

In my daily work, I’m becoming quite familiar with the ins and outs of using System.Text.Json. For those unfamiliar with this library, it was released along with .NET Core 3.0 as an in-the-box JSON serialisation library. At its release, System.Text.Json was pretty basic in its feature set, designed primarily for ASP.NET Core scenarios to handle […]

Read More

How Does the StringBuilder Work in .NET? (Part 3)

28th July 202125th January 2024 Steve Gordon

Part Three:  How Appending Works and the StringBuilder Expands So far in this series, we’ve learned when we should consider using StringBuilder in our code and learned about the memory overhead of using a StringBuilder. It’s now time to learn how the StringBuilder can “expand” its capacity and support appending string data efficiently. As with […]

Read More

How Does the StringBuilder Work in .NET? (Part 2)

8th July 20215th February 2026 Steve Gordon

Part Two: Understanding the Overhead of a StringBuilder To continue exploring how the StringBuilder works, we’ll shift focus and study its logical design. Today, we’ll start by looking at how the type is designed and the overhead involved with creating and using StringBuilder instances. If you missed part one of this series, I explained why […]

Read More

How Does the StringBuilder Work in .NET? (Part 1)

5th July 202125th January 2024 Steve Gordon

Part 1: Why do we need a StringBuilder and when should we use one? After becoming proficient in .NET and C#, developers are likely to learn that they should use a StringBuilder to optimise string manipulation and concatenation. This is not a hard and fast rule for all situations but is generally good advice if […]

Read More

Using DateOnly and TimeOnly in .NET 6

Using DateOnly and TimeOnly in .NET 6

25th May 202125th January 2024 Steve Gordon

In .NET 6 (preview 4), two long-awaited types have been introduced as part of the core library. DateOnly and TimeOnly allow developers to represent either the date or time portion of a DateTime. These two new types are structs (value types) and may be used when your code deals with date or time concepts independently. […]

Read More

Posts pagination

Newer posts 1 … 4 5 6 … 36 Older posts

Pluralsight Courses


  • Creating Background Services in ASP.NET Core and .NET
  • Dependency Injection in ASP.NET Core 6
  • Configuration and Options in ASP.NET Core 6
  • String Manipulation and Regex in C#10
  • String Manipulation in C#: Best Practices
  • Integration Testing ASP.NET Core Applications: Best Practices
  • Implementing Cross-cutting Concerns for ASP.NET Core Microservices

Follow me

  • Twitter
  • Github
  • LinkedIn
  • YouTube
  • Mastodon

Support This Blog

Become a Patron!

Support this blog!Buy me a coffee!

Recent Posts

  • Encrypting Properties with System.Text.Json and a TypeInfoResolver Modifier (Part 2)
  • The Grand Mystery of the Missing 18 Bytes
  • Talk: Application Performance Optimisation in Practice (60 mins)
  • Encrypting Properties with System.Text.Json and a TypeInfoResolver Modifier (Part 1)
  • How dotnet.exe resolves and loads the hostfxr library – Exploring the .NET muxer

.NET South East

Please come and join our new .NET User  Group in Brighton, UK.

Categories

Archives

  • Twitter
  • Github
  • LinkedIn
  • YouTube
  • Mastodon
  • Twitter
  • Github
  • LinkedIn
  • YouTube
  • Mastodon
Copyright © Steve Gordon 2019 Theme by Colorlib Powered by WordPress