There is a string method called Contains. It allows you to quickly search a string for another string. I need to use this in a .netcf 2.0 application but per MSDN it does not come available until the 3.5 framework.
Can anyone offer a work around (C#)?
TIA Noble
You could try using String.IndexOf. If it returns -1, the string does not exist inside the other string.
What about string.IndexOf and just check to see if it returns greater than -1?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With