Is string reference type / value type ?

Answer Posted / narayansahu

It's a common misconception that string is a value type.
That's because its immutability makes it act sort of like
a value type. It actually acts like a normal reference type

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why dictionary is faster than list?

749


How many types of constructors are available in c#?

730


Different between method overriding and method overloading?

675


what are the contents of an assembly ?

745


what is IComparable

768


Explain 'structure padding'?

908


What is the difference between User controls and Custom Controls?

789


Are there functions in c#?

718


What is multicast delegate in c# ?

755


What is a string in c#?

658


How do you define a predicate?

665


What are cookies in c#?

750


What is argument in c#?

704


What is a class c#?

652


What is trim in c#?

776