Skip to main content

Steve Gordon – Code with Steve

  • About Me
  • Contact
  • Subscribe

Tag: C#

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

28th July 202116th August 2021 Steve Gordon Leave a comment

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

Using DateOnly and TimeOnly in .NET 6

Using DateOnly and TimeOnly in .NET 6

25th May 202125th May 2021 Steve Gordon Leave a comment

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

String Manipulation in C#: Best Practices Header

String Manipulation in C#: Best Practices

10th May 202110th May 2021 Steve Gordon Leave a comment

Last week my sixth Pluralsight course, “String Manipulation in C#: Best Practices” was released. This new course dives into creating, modifying, searching and parsing strings in .NET. Strings are one of the most used types in .NET applications and In this course, you’ll uncover everything you need to know about strings to use them effectively […]

Read More

Getting Started with the Roslyn APIs - Writing Code with Code

Getting Started with the Roslyn APIs: Writing Code with Code

22nd March 202122nd March 2021 Steve Gordon Leave a comment

For the last few weeks, I’ve been working on designing and developing a C# code generator. In this post, I want to explain some of the core concepts that I’ve learned so far and describe how you too, can get started with using the Roslyn APIs. NOTE: The Roslyn APIs are a niche feature of […]

Read More

Performance Optimisations Don't Have to be Complex Header

.NET Performance Optimisations Don’t Have to be Complex

16th September 202017th September 2020 Steve Gordon Leave a comment

Readers who have followed me for some time will know that I have developed a bit of a passion for performance improvements and avoiding allocations in critical code paths. Previous blog posts have touched on examples of using Span<T> as one mechanism to prevent allocations when parsing data and using ArrayPool to avoid array allocations […]

Read More

Posts navigation

1 2 Older posts

Pluralsight Courses


  • Dependency Injection in ASP.NET Core 6
  • String Manipulation in C#: Best Practices
  • Dependency Injection in ASP.NET Core
  • Using Configuration and Options in .NET Core and ASP.NET Core Apps
  • Building ASP.NET Core Hosted Services and .NET Core Worker Services
  • Integration Testing ASP.NET Core Applications: Best Practices
  • Implementing Cross-cutting Concerns for ASP.NET Core Microservices

Follow me

  • Twitter
  • Github
  • LinkedIn
  • YouTube

Support This Blog

Become a Patron!

Support this blog!Buy me a coffee!

Recent Posts

  • Using the Roslyn APIs to Analyse a .NET Solution
  • Custom JSON Serialisation with System.Text.Json Converters
  • Playing with System.Text.Json Source Generators
  • How Does the StringBuilder Work in .NET? (Part 3)
  • How Does the StringBuilder Work in .NET? (Part 2)

.NET South East

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

Categories

Archives

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