Is string reference type / value type ?

Answer Posted / avisek

string is referrence type....
bcz there is no limitations of string means it can have variable length......thats why str[0],str[1],
string stores only the referrence to the value stored in it....

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?

521


What is the difference between overriding and overloading in systemverilog?

452


What is field in c#?

458


What is the use of expression tree in c#?

473


What is lazy t?

502






What is property in c#?

535


What is difference between list and ilist in c#?

462


Can a class have static constructor?

541


How do I format a string in c#?

476


Can we inherit two classes in c#?

503


Explain states of a thread in c#?

520


What is the difference between read and readline in c#?

472


Is php easier than c#?

487


How to sign an assembly with strong name?

575


What is desktop example?

485