Small pit of C# Enumerable.Repeat()

In fact, it is not a pit of Enumerable.Repeat(), it is a pit of value/reference type, but it is not a pit, but I did not understand it before[…]

This article is transferred from https://azhuge233.com/c-enumerable-repeat-%E7%9A%84%E5%B0%8F%E5%9D%91/
This site is only for collection, and the copyright belongs to the original author.