// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; namespace System.Collections.ObjectModel { /// /// A class that inherits from Collection of T but also exposes its underlying data as List of T for performance. /// internal sealed class ListWrapperCollection : Collection { private readonly List _items; internal ListWrapperCollection() : this(new List()) { } internal ListWrapperCollection(List list) : base(list) { _items = list; } internal List ItemsList { get { return _items; } } } }