Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Ignore the case while comparing two strings in C#
WhatsApp
Thamilselvan Jagadeesan
11y
63.3
k
0
0
25
Blog
Below is the best way to compare the string in C# and ignore the case sensitive.
string strCompare = "testcomPARE";
if (strCompare.Equals("testcompare", StringComparison.InvariantCultureIgnoreCase))
{
///
}
Up Next
How to extract a string lies between two strings in C#.Net?
Ebook Download
View all
Object Oriented Programming Using C#
Read by 47.2k people
Download Now!
Learn
View all
Membership not found