Strings
Explore articles on strings in C#. Learn how immutability, UTF-16, and culture-aware comparisons, literals and interpolation to trimming, splitting, searching, and formatting.
We cover best practices, Unicode concerns, and when it is preferable to use StringBuilder.
A comprehensive introduction to C# strings, covering how they work under the hood, how to declare and format them, how to compare them correctly, and the practical stuff you hit every day, such as immutability, common operations, empty/null checks, and when to reach for StringBuilder.
This fun exercise explores parsing Morse Code in C#. Learn how to decode Morse Code into readable text using Test-driven development.
This fun exercise explores handling Morse Code in C#. Learn how to convert string text to Morse Code using Test-driven development.
This fun exercise explores how to manually parse integers from strings in C#, helping you understand how number conversion works without relying on built-in methods like int.Parse or int.TryParse.
Learn how to reverse strings in C# using an extension method. This guide demonstrates how to implement a Unicode-aware reversal method that not only handles letters, numbers, and symbols but also preserves emojis and accented characters.