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
What are escape sequences explain with example?
What is difference between out and ref in c#?
Write a short note on interface?
What is difference between overloading and short circuiting?
What is the difference between proc. Sent by val and by sub?
What is the difference between wrapper class and primitive?
What is dependency injection in simple words?
What are custom exceptions?
What is using keyword?
What is event delegate in c#?
If I want to override a method one of class A and in class b then how do you declare?
What is stringbuilder c#?
What is the difference between a private assembly and a shared assembly?
What is writeline?
What is asax file in c#?