Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3596434
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:59:15+00:00 2026-05-18T19:59:15+00:00

Most times I want to do string comparisons I want them to be case

  • 0

Most times I want to do string comparisons I want them to be case insensitive.

So why are string in .net case sensitive by default?

EDIT 1: To be clear I think the below should return true by default. Or at least allow me to have a compile time flag that makes it so.

"John Smith" == "JOHN SMITH" 

EDIT 2: I can think of many more examples of things that should be case insensitive

Examples of things that should be case insensitive

  • Usernames
  • Urls
  • File extensions / File names / Directory names / Paths
  • Machine / servernames
  • State / Country / Location etc
  • FirstName / LastName / Initials
  • Guids
  • Month / Day names

Examples of things that should be case sensitive

  • Passwords
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T19:59:16+00:00Added an answer on May 18, 2026 at 7:59 pm

    Sorry for the trivial answer, but that’s just the way it is 🙂

    At a basic level, strings are represented as a list of characters, where ‘a’ is different from ‘A’, so it’s probably the easiest representation \ convention overall. In your case, it’s probably fair to say that the majority of comparisons is case-insensitive, but I think the other side of the argument holds true at least as much and a convention has been adopted.

    I’d imagine utilizing some helper methods \ classes would ease your pain somewhat.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Most times I want to do string comparisons I want them to be case
Most times I see people try to use linked lists, it seems to me
Most of the times, I put some javascript code in $(document).ready to do some
A user can post 4 times at most within a day. The difficulty is
What would be the most efficient way of counting the number of times a
I have a project which starts and stops a service. Most of the times
Is there arguments that work most of the time in AS3? I want a
So, I have a string. Most of the time, if the string has square
What is the best and most effective way to extract a string from a
Here's a piece of code that takes most time in my program, according to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.