how to check a substring in a string in C#

string str = C"\Program\MyApp\Bin";
string str1 = C:\progra,\MyApp\Bin\Help\Files"

I have to check,  str1 contains str, ie, str1 is part of str.
HPFE455Asked:
Who is Participating?
 
micropc1Commented:
0
 
HPFE455Author Commented:
Thanks for the solution, Excellent
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.