Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
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.4
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
The SOLID Principles
Read by 18.4k people
Download Now!
Learn
View all
Membership not found