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 the applications of c#?
Explain the difference between class and interface in .net?
What is polymorphism c# example?
Can you inherit from a static class in c#?
What is routing in c#?
What is the use of flag in c#?
For methods inside the interface why can’t you specify the accessibility modifier?
How to override a function in c#?
What is difference between hashtable and dictionary in c#?
Why we use methods in c#?
Can abstract classes be final?
Why constructor is used in c#?
What debugging tools come with the .NET ssSDK?
Why singleton pattern is used in c#?
Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards