Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: .NET
Expertise: Beginner
Jan 22, 2007

Use String.Compare to Compare Case-insensitive Strings

To perform a case-insensitive string comparison, use the String.Compare function. One of this function's overloaded methods has a third paramenter (boolean) which specifies whether a case should be ignored or not.


    "Srinath" == "srinath"                            //returns false
    System.String.Compare( "Srinath", "srinath", true ) //returns true

Srinath MS
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap