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 escape sequence in c#?

675


What is Fragmentation and its Types?

641


List down the differences between “dispose” and “finalize” methods in c#.

527


how can one use hcl and c sharp together?

1669


Define an assembly in .net?

628






What is difference between array and arraylist c#?

555


What are the Types of caching

631


What is polymorphism c# example?

575


Can class inherit from struct c#?

617


What is the difference between internal and protected in c#?

533


Is array a collection c#?

611


What are the benefits of using generics in c#?

574


How long will it take to learn c sharp?

582


What is namespace explain with example?

525


What is the data provider name to connect to access database?

585