Is string reference type / value type?
Answers were Sorted based on User's Feedback
Answer / baranee
Hi,
String is a value type but its not advisable to use for the
frequent usage of string.String is a class which has
default size of 16.If the value exceeds it will create one
more instance and left the old reference which is still not
cleared in memory. So we can use stringbuilder value type
which doubles the size when the default size exceeds.
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / prasanta
Sorry Iam confused,String is a value type or refereence
type give answer only who know the right answer.
| Is This Answer Correct ? | 0 Yes | 4 No |
Answer / vasu
Afsoos galat Jawab Sahi Jawab.............
String is Value type
further no more discussion
| Is This Answer Correct ? | 5 Yes | 79 No |
Answer / vikram
sorry you are wrong , string is the value type
| Is This Answer Correct ? | 16 Yes | 154 No |
Write the sample code for threading in c# .net..
how can your software identify which version of dot net framework install in client pc and install framework accordingly
When should we use delegates in c#?
Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates
Why is it not a good idea to use empty destructors?
How many root nodes are there in an xml document?
What is difference between private and protected?
What are native functions?
What is delegation in oops?
Explain a MSIL ? Why is it appreciated by all developers?
Are private members inherited in c#?
Is dll a library?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)