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?
STRINGorstrinGor anything else. Secondly, it is not the only type that has an alias:objectis an alias forObject;boolis an alias forBoolean;doubleis an alias forDouble, etc. Incidentally,voidis also an alias forVoid, but C# doesn’t let you useVoid...