find method

  • Thread starter Thread starter Wallace
  • Start date Start date
W

Wallace

Hai all,

Is there is any find() method in c#?
i.e finding whether a particular string is present in another
string...
Looking forward for the response...
Thanx in advance...
 
Hi,

There's no Find() method, but you can use the String.IndexOf()
method...

MyMainString.IndexOf(StringToSearch)

Regards,

Cerebrus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

atoi 2
String.Split 2
Format 1
Parsing Problem..... 8
Calling COM.... 1
Multiple Interface!!!!!!! 4
Question regarding exception.... 2
Regarding NullReferenceException!!!! 7

Back
Top