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
Where is c# compiler located?
What is the difference between static class and abstract class in c#?
Why do we use reflection in c#?
Illustrate serialization?
How do you sort an array in c#?
Explain about Oops concept
How can i Spawn a Thread
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
What is hashmap in c#?
What is default constructor in c#?
what is c# command?
How to sign an assembly with strong name?
What is out in c#?
What do you use c# for?
What is difference between value and reference types in C#.NET