源列表变化后会输出哪两个计数?

来自 集合
C# 14 / .NET 10 进阶 2分钟

源列表变化后会输出哪两个计数?

csharp
using System;
using System.Collections.Generic;

var source = new List<string> { "Book" };
IReadOnlyList<string> view = source.AsReadOnly();
string[] copy = source.ToArray();

source.Add("Pen");
Console.WriteLine($"{view.Count}, {copy.Length}");
在试验场中打开
报告错误