String Performance: Checking for a Character

The article compares two methods of checking for the presence of a specific character in a string in C#.

String Performance: Checking for a Substring

There are three main methods to check for a string, within a string. Those methods, from String, are: Contains(), StartsWith(), and EndsWith(). This article shows the performance differences between these methods. Updated February 2023.