Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the difference between continue and break statement?

956


What is interpolation in programming?

971


What is wpf c#?

865


What is arraylist?

992


What is parallel foreach c#?

939


Do while loops yes or no c#?

962


What is difference between var dynamic and object in c#?

935


What are circular references?

944


Are c# references the same as c++ references?

983


Is c# a strongly-typed language?

981


What is anonymous types in c#?

898


Is c# an array?

892


What is difference between string and string builder?

964


Distinguish between system.string and system.text.stringbuilder classes?

922


Write a C# program to find the Factorial of n

973