The article compares two methods of checking for the presence of a specific character in a string in C#.
Tag: EndsWith
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.

You must be logged in to post a comment.