Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
Questionstring matching Pin
arkiboys15-Jun-10 6:56
arkiboys15-Jun-10 6:56 
AnswerRe: string matching Pin
Ravi Bhavnani15-Jun-10 7:00
professionalRavi Bhavnani15-Jun-10 7:00 
AnswerRe: string matching [modified] Pin
Luc Pattyn15-Jun-10 7:05
sitebuilderLuc Pattyn15-Jun-10 7:05 
AnswerRe: string matching Pin
Dave Kreskowiak15-Jun-10 7:08
mveDave Kreskowiak15-Jun-10 7:08 
GeneralRe: string matching Pin
Luc Pattyn15-Jun-10 7:13
sitebuilderLuc Pattyn15-Jun-10 7:13 
GeneralRe: string matching Pin
arkiboys15-Jun-10 7:59
arkiboys15-Jun-10 7:59 
AnswerRe: string matching Pin
T M Gray15-Jun-10 8:34
T M Gray15-Jun-10 8:34 
GeneralRe: string matching Pin
arkiboys15-Jun-10 8:46
arkiboys15-Jun-10 8:46 
Hello,

string s1 = "Hello how are you, hello how are you, hello how are you this morning"

string s2 = "Hello"

This is what I have now but do not know how to compare one string to the other to see if they match. Can you help please?
Thanks

char[] chars1 = strs1.ToCharArray();
char[] chars2 = strs2.ToCharArray();

for (int i = 0; i < chars1.Length; i++)
{
char letter = chars1[i];
}
GeneralRe: string matching Pin
Luc Pattyn15-Jun-10 11:36
sitebuilderLuc Pattyn15-Jun-10 11:36 
GeneralRe: string matching Pin
arkiboys15-Jun-10 11:38
arkiboys15-Jun-10 11:38 
GeneralRe: string matching Pin
Luc Pattyn15-Jun-10 11:38
sitebuilderLuc Pattyn15-Jun-10 11:38 
QuestionSystem.IO.Exception Pin
MWRivera15-Jun-10 6:32
MWRivera15-Jun-10 6:32 
AnswerRe: System.IO.Exception Pin
J4amieC15-Jun-10 6:44
J4amieC15-Jun-10 6:44 
GeneralRe: System.IO.Exception Pin
MWRivera15-Jun-10 7:45
MWRivera15-Jun-10 7:45 
AnswerRe: System.IO.Exception Pin
Luc Pattyn15-Jun-10 7:10
sitebuilderLuc Pattyn15-Jun-10 7:10 
AnswerRe: System.IO.Exception Pin
yu-jian27-Jun-10 10:28
yu-jian27-Jun-10 10:28 
QuestionDataGrid Column: How to create simulated mouse click event or column header click event. Pin
roman_s15-Jun-10 5:26
roman_s15-Jun-10 5:26 
AnswerRe: DataGrid Column: How to create simulated mouse click event or column header click event. Pin
Henry Minute15-Jun-10 6:26
Henry Minute15-Jun-10 6:26 
QuestionRe: trapping F1 in a file dialog Pin
mla15415-Jun-10 4:30
mla15415-Jun-10 4:30 
AnswerRe: trapping F1 in a file dialog Pin
dan!sh 15-Jun-10 4:49
professional dan!sh 15-Jun-10 4:49 
GeneralRe: trapping F1 in a file dialog Pin
mla15415-Jun-10 5:12
mla15415-Jun-10 5:12 
GeneralRe: trapping F1 in a file dialog Pin
Dave Kreskowiak15-Jun-10 5:25
mveDave Kreskowiak15-Jun-10 5:25 
GeneralRe: trapping F1 in a file dialog [modified] Pin
mla15415-Jun-10 5:30
mla15415-Jun-10 5:30 
GeneralRe: trapping F1 in a file dialog Pin
Dave Kreskowiak15-Jun-10 7:05
mveDave Kreskowiak15-Jun-10 7:05 
GeneralRe: trapping F1 in a file dialog Pin
dan!sh 15-Jun-10 5:57
professional dan!sh 15-Jun-10 5:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.