//----------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Runtime { using System.Collections.ObjectModel; class ReadOnlyKeyedCollection : ReadOnlyCollection { KeyedCollection innerCollection; public ReadOnlyKeyedCollection(KeyedCollection innerCollection) : base(innerCollection) { Fx.Assert(innerCollection != null, "innerCollection should not be null"); this.innerCollection = innerCollection; } public TValue this[TKey key] { get { return this.innerCollection[key]; } } } }