Solved

how to check a substring in a string in C#

Posted on 2012-03-09
2
289 Views
Last Modified: 2012-03-09
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.
0
Comment
Question by:HPFE455
2 Comments
 
LVL 7

Accepted Solution

by:
micropc1 earned 500 total points
ID: 37703837
0
 

Author Closing Comment

by:HPFE455
ID: 37703861
Thanks for the solution, Excellent
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.Net How to Exit Sub - Exit Form??? 5 57
designing in object programming 12 77
Keyboard 2 33
.NET 2008 VB and C# 6 28
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question