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 public void in c#?
What do you mean by default constructor?
Why we use delegates in c#?
What is ado net in c#?
Is arraylist type safe in c#?
What is a partial class in c#?
Why are strings immutable in c#?
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
What are most desktop applications written in?
What is inumerable?
What is the use of main method in c#?
Why dictionary is used in c#?
What is the use of delegates in c#?
What is delegates and events?
how can one use hcl and c sharp together?