|
by luisabreu via LA.NET [EN] on 7/8/2008 8:17:49 AM
Ok, so you already know the answer, right? That’s why the String class has the Contains method. And it will work until you need to explicitly need to use a different StringComparison option than the one that is used by default. If like me, you know that Reflector is your friend, then you can just open it and see how the Contains method is implemented. Basically, what you need is a new extension method that looks like this: public static class StringExtensions {
... [ read more ]
|
|