forum

Home / DeveloperSection / Forums / C#.Net case-insensitive string

C#.Net case-insensitive string

Anonymous User297316-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?


Updated on 21-Feb-2013
I am a content writter !

Can you answer this question?


Answer

2 Answers

Liked By