Users Pricing

forum

Home Forums C#.Net case-insensitive string – MindStick

C#.Net case-insensitive string

Anonymous User 3545 16 Feb 2013

Hi Expert!

A quick and simple question...

Why does C#.Net allow the declaration of the string object to be case-insensitive?

String sHello = "Hello";
string sHello = "Hello";
Both the lower-case and upper-case S of the word String are acceptable and this seems to be the only object that allows this.

Can anyone explain why?


2 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md