Skip to main content
This is lesson 1 of 5 in this module Course 20% complete

String Are Reference Types

Premium Content

Sign in with your account or sign up to access this lesson.

The lesson explains why strings are reference types in .NET, covering UTF-16 encoding, heap storage, and how two string variables can point to the same memory block. Demonstrates that assigning one string to another creates two references to the same heap object.