Is string reference type / value type?

Answer Posted / frank

Habitat, you're an idiot and just confusing things further. This thread is littered with links pointing out that string is a reference type. Here's are two more: http://msdn.microsoft.com/en-us/library/362314fe(VS.71).aspx.
http://msdn.microsoft.com/en-us/library/aa691153(VS.71).aspx

Do you know what a stack is? Do you know what interning is? Do you know you can write: string s = null;?

String is a reference type that often "behaves" like a value type.

To quote you directly: "If you dont know anything - dont confuse others!!!"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are classes passed by reference in c#?

483


Explain the difference between Metadata and Manifest

551


What is sealed class in c#?

521


What is default class in c#?

505


what is the difference between .dll and .exe

531






Assembly Code. in Rejester AL. How do Contast Replece( or Change): Bit D3 With Bit D4 and Bit D2 With Bit D5 and Bit D1 With Bit D6 and Bit D0 With Bit D7 I am Not Know Very Well Write English.

1448


Which class does the remote object has to inherit?

608


What is difference between mutable and immutable in c#?

453


How can you access a private method of a class?

513


What is as keyword in c#?

577


How can you set image source dynamically from c# application to ”test.png” file?

641


What is escape character in c#?

512


What is null propagation c#?

505


What is tryparse?

519


Define xslt.

548