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 / baranee

Hi,

String is a value type but its not advisable to use for the
frequent usage of string.String is a class which has
default size of 16.If the value exceeds it will create one
more instance and left the old reference which is still not
cleared in memory. So we can use stringbuilder value type
which doubles the size when the default size exceeds.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are delegates chosen?

892


Explain the steps to create satellite assembly?

903


What is lazy loading c#?

1041


Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?

1055


From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

963


What is a strong name in c#?

1396


What is the function of .IsDescendent()?

1025


What is sorted list in c#?

900


can you create a function in c# which can accept varying number of arguments

1083


Is learning c# hard?

925


Explain how do you debug an asp.net web application?

921


Is c and c# the same?

920


List the fundamental oop concepts?

901


What is singleordefault c#?

908


What is xamarin used for?

936