Is string reference type / value type ?
Answer Posted / ankur sehgal
string is reference type but it behaves as value
type.Because every time u assign a value to string a new
object is created.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the difference between dynamic type variables and object type variables in c#?
Does c# support a variable number of arguments?
How can I produce an assembly?
What is the difference between wrapper class and primitive?
What is dictionary collection in c#?
What is difference between iqueryable and ienumerable in c#?
Why do I get a syntax error when trying to declare a variable called checked?
How many root nodes are there in an xml document?
Is c# easier than c++?
What is the use of readkey in c#?
Structs are not reference types. Can structs have constructors?
What are the steps for creating clr trigger
What is string concatenation?
What is ispostback c#?
What is thread.sleep()?