Is string a value type or a reference type?

Answer Posted / senthilselvan

string is a reference type.

string str = "hello";
char x = str[1];

here what we do is handling the memory.
which type allows you to handle the memory is reference types.

Is This Answer Correct ?    26 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain an object, class and method.

570


What are ASHX files?

607


Which is better php or asp.net?

526


What is Web API?

653


How can you implement encapsulation in asp.net?

11333






What is Cookies Less Session?

622


How to do state management in ASP.NET?

609


How does asp.net work?

561


What is the life cycle of web page?

533


I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al���Ƴ�Â��ƴ�Ã��ƶ�Å�� al���Ƴ�Â��ƴ�Ã��ƶ�Å�� Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.

1442


What is recordset asp?

558


What is http session state?

531


If you want to write your own dot net language, what steps you will you take care?

531


What is the function used for removing an event listener?

559


What is session state server?

631