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
What is writeline?
List the difference between the virtual method and the abstract method?
Are c# strings immutable?
Can you declare a field readonly?
Is string value type c#?
Wcf and what is difference between wcf and web services?
How do I make a dll in c#?
How does array sort work?
Can you prevent a class from being instantiated?
What is mvc in c#?
windows c# using datagridview in edit form sql server
Why do we parse in c#?
What is the difference between abstract class and interface in c#?
How do you prevent a method from being overridden in c#?
How big is a float?