Home > Software > .NET > C-Sharp
Interview Questions   Tutorials   Discussions   

C-Sharp - Is string reference type / value type?




260
views
asked mar October 4, 2014 03:05 AM  

Is string reference type / value type?


           

1 Answers



 
answered By siddhant   0  

It's a reference type.

It can't be a value-type, as value-types need a known size for the stack etc. As a reference-type, the size of the reference is known in advance, even if the size of the string isn't.

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert