What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 12094 |  Welcome, Guest!   Register  Login
 Home > Forums > C# > String Compare in c#.net ...
Selvarajmgp

String Compare in c#.net

Replies: 1 | Posted by: Selvarajmgp on 5/17/2012 | Category: C# Forums | Views: 440 | Status: [Member] | Points: 10  


Hi ,

Which one is the best for string compare in c#.net.

string.equal
string.compareto
string.compare .., etc

Advance Thanks,

Regards,

Selvaraju.n


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Sheonarayan
Sheonarayan  
Posted on: 5/17/2012 12:22:00 PM
Level: HonoraryPlatinum | Status: [Microsoft_MVP] [Administrator] | Points: 25

There are more functions than you have written and if your requirement is to just compare two strings to check for the equality then string.Equals is the way to go.

More on Comparing strings in C# - http://msdn.microsoft.com/en-us/library/fbh501kz(v=vs.80).aspx.

Thanks


Regards,
Sheo Narayan, Microsoft MVP
The Founder
http://www.dotnetfunda.com

Selvarajmgp, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/24/2013 3:37:47 PM