What is the difference between String s(Small s) and String
S(Capital S)?

Answer Posted / sudhir sheoran

There is no difference between string and String.
string is just an alias of System.String. They both
are complied to the same code. In IL there is no difference
between the two. But as a standard followed by MSDN string
is used as datatype declaration e.g string s = "abc"
and if we are accessing some class then String should be
used. e.g String.Format("abc");

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are escape sequences explain with example?

483


What is difference between out and ref in c#?

534


Write a short note on interface?

584


What is difference between overloading and short circuiting?

468


What is the difference between proc. Sent by val and by sub?

482






What is the difference between wrapper class and primitive?

462


What is dependency injection in simple words?

505


What are custom exceptions?

533


What is using keyword?

530


What is event delegate in c#?

582


If I want to override a method one of class A and in class b then how do you declare?

746


What is stringbuilder c#?

515


What is the difference between a private assembly and a shared assembly?

555


What is writeline?

485


What is asax file in c#?

572