New how-to: Managing text files in C#

Great new post by Ben Day over on the VSLive! blog, where he lays out a clean approach for managing text-based resources in C# (SQL or GraphQL queries) without cluttering your code with raw string constants.

Instead of embedding these directly or relying on .resx, he shows how to use external files and .NET’s file keyword to keep things organized and platform-agnostic. Super straightforward and practical:
https://vslive.com/blogs/news-and-tips/2025/10/skip-the-string-constants.aspx

Anyone else using a similar pattern?

1 Like