Is string reference type / value type?

Answer Posted / n

Hi Guys

If any of you got so far.. Here is the deal:

The differnce between value types and reference types are
whether the information is stored in the stack or on the
heap. Design guidelines for designing structures (value
type, stored in the stack) is that it's instance value
should be less than 16 bytes.

In the .NET Framework, ALL value types are 16 bytes or
shorter.

A string can be a lot more than 16 bytes...

It does however act like a value type in order to make the
programming easier for us... This can be the reason for all
this confusion...

Now stop arguing and start converting coffee into code....

/N

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain About remoting and web services. Difference between them

545


Why is it not a good idea to use empty destructors?

548


What is response redirect in c#?

483


Explain async and await?

538


How assembly versioning in .NET prevent DLL Hell problem?

516






Which is faster array or arraylist in c#?

483


Can a dictionary have the same key?

500


How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!

1684


Explain how do I convert a string to an int in c#?

518


What is join in c#?

484


What is cli in c#?

500


Explain About ADO and its objects

575


What Is A Multicast Delegate?

547


What is a generic in c#?

509


What is concrete method in c#?

492