Is string reference type / value type?

Answer Posted / guest

Simple types (such as float, int, char), enum types and
struct types are all value types.
Note that many types (such as string) appear in some ways
to be value types, but in fact are reference types. These
are known as immutable types

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is generic delegate in c#?

461


What is literal in c#?

473


What is hash c#?

500


Why is hashset faster?

491


What is a cs file?

523






What does public mean in c#?

518


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

437


What is console programming language?

487


Constructor to an arbitrary base constructor?

562


What is dictionary collection in c#?

499


What is the difference between firstordefault and first?

477


Which constructor is called first in c#?

518


Which is more efficient for loop or while loop?

471


What are the 3 logical operators?

565


What is lazy class in c#?

478