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 is the difference between dynamic type variables and object type variables in c#?
What is the base class for array types?
Can we have multiple constructors in a class c#?
What is dll in c#?
Is c and c# the same?
What is private readonly in c#?
What does mean before a string in c#?
What are extender provider components? Explain how to use an extender provider in the project.
Can constructor be overloaded in c#?
What is a Managed Code??
What is the difference between writeline and write in c#?
What is mean by c#?
What is gac? How to put assembly in gac?
What is private void in c#?
What is a long in c#?