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 yield return in c#?
What is the difference between method and function in c#?
Do void methods have parameters?
Define multicast c# delegate?
What is unmannaged code and will CLR handle this kind of code or not .
Is is possible to force garbage collector to run?
Why is aws serverless?
What is ulong in c#?
write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )
Why do we use anonymous method in c#?
Why we use get and set property in c#?
What is the advantage of constructor in c#?
I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?
How to achieve polymorphism in c#?
What is the max value of int32 in c#?