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
Is multiple inheritance possible in c#?
What are the steps to create a webservice and consume it?
What are different types of Delegates in C#?
Which is executed if an exception has not occurred?
What is difference between private and protected in c#?
What is sqldataadapter in c#?
What is different between Implicit conversion and Explicit conversion in C#?
What is a hash table in c#?
Can we change static value in c#?
What is the solution if you need to manipulate sets of items?
What is difference between class and abstract class in c#?
What are the main reasons to use c# language?
What is meant by unicode characters?
What is difference between function and method in c#?
What is inner class in c#?