The following program results in different outcomes when run on .NET 5 (or .NET Core) and .NET Framework.
My question is "Why is the behaviour different?" I