122 Views
Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. Two weeks ago I decided to stop my Little Wonders in the String class, but I recanted and decided to do one more before wrapping up String. So today we’ll look at the many different ways to find a string inside of another string using IndexOf(), LastIndexOf(), Contains(), StartsWith(), and EndsWith().
I'd imagine, as in all things, it would depend a lot on the complexity of the expression, length of string, etc.