What does the read-only view print after the variable is rebound?

from Span<T> and Memory<T>
C# 14 / .NET 10 intermediate 2 min

What does the read-only view print after the variable is rebound?

csharp
using System;

string text = "abc:def";
ReadOnlySpan<char> prefix = text.AsSpan(0, 3);
text = "xyz";

Console.WriteLine(prefix.ToString());
Console.WriteLine(text);
Open in playground
Report an error