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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
micropc1Connect With a Mentor Commented:
0
 
HPFE455Author Commented:
Thanks for the solution, Excellent
0
All Courses

From novice to tech pro — start learning today.