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

Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?

776


What is the difference between throw and throw ex?

671


Explain the difference between abstract class and interface in .net?

713


What is a cs file?

771


Explain 'structure padding'?

941


There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?

1811


How do you type a null character?

685


What is a nullreferenceexception?

770


Explain the use of SN.exe

846


Is datetime value type c#?

652


What do you mean by object pooling?

746


What is getenumerator?

667


What is the difference between ref and out in c#?

660


What is a struct in C#?

762


What are the extension methods in c#?

690