예제 #1
0
        /// <inheritdoc />
        public TValue this[TKey key]
        {
            get
            {
                IReadOnlyDictionaryContracts.Indexer(this, key);

                return(this.dictionary[key]);
            }
        }
예제 #2
0
        /// <inheritdoc />
        public bool TryGetValue(TKey key, out TValue value)
        {
            IReadOnlyDictionaryContracts.TryGetValue(key);

            return(this.dictionary.TryGetValue(key, out value));
        }
예제 #3
0
        /// <inheritdoc />
        public bool ContainsKey(TKey key)
        {
            IReadOnlyDictionaryContracts.ContainsKey(key);

            return(this.dictionary.ContainsKey(key));
        }