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 .exe means?

861


What is the purpose of reserved word using in c#?

898


How can you force derived classes to provide new method implementations for virtual methods?

871


Why ref is used in c#?

845


What is default value of decimal c#?

844


What you mean by delegate in c#?

857


What is the difference between proc. Sent by val and by sub?

934


What is the difference between an application domain and a process?

970


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

917


What is default boolean value in c#?

936


Explain About namespaces

947


Are c# strings null terminated?

989


What is a generic method?

910


How do I create a multilanguage, single-file assembly?

888


Define property in c#.net?

922