2
MSDN文章沒有真正解釋這一點。列表<T>如何使用ReadOnly列表複製構造函數?
List<MyObject> FirstList = new List<MyObject>();
// Add items to FirstList.
List<MyObject> SecondList = new List<MyObject>(FirstList.AsReadOnly());
// Is SecondList a read-only collection?