Skip to main content
This is lesson 2 of 5 in this module 2/5

String Copy On Write Behavior

We explain how the .NET framework implements copy-on-write semantics so that strings behave like value types despite being reference types, cover why mutating a string creates a new heap copy, and explain why the == operator always performs a value comparison on strings.

Video lesson

Want to watch this lesson?

This lesson is part of the study plan. Get instant access to all lectures, labs and practice exams.

Get the Study Plan