Tuesday, September 9, 2008

Compare case sensitive or case-insensitive string

string str1="Mahmad";
string str2="mahmad"

String.compare(str1,str2,false); //false As third parameter is false which means cas should not be ignored


String.Compare( str1,str2, true ) // true As third parameter is false which means cas should be ignored

No comments: