Is string reference type / value type ?

Answer Posted / narayansahu

It's a common misconception that string is a value type.
That's because its immutability makes it act sort of like
a value type. It actually acts like a normal reference type

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between managed and unmanaged code?

601


What is a console operator?

606


What is the use of oops in c#?

607


What are the principles of delegation?

621


To whom a method is accesssed if it is marked as protected internal ?

740






What is bitwise operator in c#?

612


what is method overloading in c#?

671


What is multiple interface in c#?

630


What is difference between list and ilist in c#?

553


What is _layout cshtml?

584


How do I format a string in c#?

583


What is a factory in c#?

596


Explain the difference between boxing and unboxing.

660


What is a predicate in c#?

607


What is a partial class in c#?

598