Performance Test — String.Contains vs String.IndexOf vs Regex.IsMatch
To find out if a string contains a piece of substring, here are three simple ways of going about it in C#, just to name a few:
- String.Contains
These were the top 10 stories published by theburningmonk.com in 2012. You can also dive into monthly archives for 2012 by using the calendar at the top of this page.