Is string reference type / value type?

Answer Posted / rachel p

The above code sample doesn't prove anything, except that
Malli's code is full of bugs! You've a line in there that
contains the following error:

Console.WriteLine("StrName1=" + StrName2);

for goodness sake! And that's by no means the only error in
logic/reasoning.

String *is* a Reference Type, however, for many of the good
reasons established by previous answers.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a sealed class?

528


Does main have to be static c#?

504


Will the following code compile and run?

568


Is c++ or c# better?

562


What is the console on a mac?

489






What is the use of console readkey in c#?

504


Explain more on CLR

764


Why do we need properties in c#?

499


How does dll hell solve in .net?

497


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!!

1690


What are the main reasons to use c# language?

509


What is enum in c#?

550


What is multicast delegate in c# ?

529


What is object type in c#?

559


What is wpf application in c#?

473