We help IT Professionals succeed at work.

how to check a substring in a string in C#

HPFE455
HPFE455 asked
on
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.
Comment
Watch Question

Senior Analyst - Technology
BRONZE EXPERT
Commented:

Author

Commented:
Thanks for the solution, Excellent

Explore More ContentExplore courses, solutions, and other research materials related to this topic.