Take advantage of extension methods to add functionality to existing types without needing to modify or derive from those original types. In the C# programming language, extension methods enable you ...
Take advantage of String.Create to create strings with no allocation overhead and improve the performance of your .NET 6 applications. String handling is one of the most performance-critical areas in ...
The title says it all: how would you manipulate strings in C# without the system libraries? I got this question recently in an interview and I've been stumped by it since. It's one of those things I ...
When you want to return a string result -- either as text, HTML or XML -- then a ContentResult object gives you the right balance of simplicity and control. Sometimes all you want to return from your ...
Peter's convinced you're not using Shared and static members enough, but then he's also convinced that none of you know about all the ways you can use those two keywords. The methods, properties and ...