This is lesson 4 of 5 in this module Course 42% complete

Demo: Immutable Strings (part 1)

Premium Content

Sign in with your account or join us to access this lesson.

In this live coding demo we run a simple string assignment and equality check to confirm that modifying one string variable does not affect the other. We demonstrate Object.ReferenceEquals alongside String.Equals to distinguish between reference and value comparisons in practice.