A String is a reference type even though it has most of the characteristics of a value type such as being immutable and having == overloaded to compare the text rather than making sure they reference the same object.

Why isn’t string just a value type then?

12 Answers
12

Leave a Reply

Your email address will not be published. Required fields are marked *