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.