This topic is now archived and is closed to further replies.

Find a sub string in a string (C#)

This topic is 5012 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am strugling to find the appropriate method for locating an instance of a string within a string for example is there a function to do the following string s1 = "This is some text" string s2 = "some" if(Compare(s1, s2)) { do something; } Thanks guys

Share this post

Link to post
Share on other sites