diff --git a/Core/BkwdComp/System.Collections.Generic.PreNet45.cs b/Core/BkwdComp/System.Collections.Generic.PreNet45.cs index 7ddc04e9..7daa9aa2 100644 --- a/Core/BkwdComp/System.Collections.Generic.PreNet45.cs +++ b/Core/BkwdComp/System.Collections.Generic.PreNet45.cs @@ -11,6 +11,40 @@ namespace System.Collections.Generic int Count { get; } } + /// Represents a generic read-only collection of key/value pairs. + /// The type of keys in the read-only dictionary. + /// The type of values in the read-only dictionary. + public interface IReadOnlyDictionary : IReadOnlyCollection> + { + /// Determines whether the read-only dictionary contains an element that has the specified key. + /// The key to locate. + /// + /// if the read-only dictionary contains an element that has the specified key; otherwise, . + /// + bool ContainsKey(TKey key); + /// Gets the value that is associated with the specified key. + /// The key to locate. + /// + /// When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the + /// type of the parameter. This parameter is passed uninitialized. + /// + /// + /// if the object that implements the interface contains an + /// element that has the specified key; otherwise, . + /// + bool TryGetValue(TKey key, out TValue value); + /// Gets the element that has the specified key in the read-only dictionary. + /// The key to locate. + /// The element that has the specified key in the read-only dictionary. + TValue this[TKey key] { get; } + /// Gets an enumerable collection that contains the keys in the read-only dictionary. + /// An enumerable collection that contains the keys in the read-only dictionary. + IEnumerable Keys { get; } + /// Gets an enumerable collection that contains the values in the read-only dictionary. + /// An enumerable collection that contains the values in the read-only dictionary. + IEnumerable Values { get; } + } + /// Represents a read-only collection of elements that can be accessed by index. /// The type of elements in the read-only list. ///