src/Runtime/Runtime/System.Windows/ResourceDictionary.cs
/// <summary>
/// Returns a value that indicates whether a specified key exists in the <see cref="ResourceDictionary"/>.
/// </summary>
/// <param name="key">
/// The key to check for in the <see cref="ResourceDictionary"/>.
/// </param>
/// <returns>
/// true if an item with that key exists in the <see cref="ResourceDictionary"/>;
/// otherwise, false.
/// </returns>
/// <exception cref="ArgumentNullException">
/// key is null.
/// </exception>
Returns a value that indicates whether a specified key exists in the .
Returns a value that indicates whether a specified key exists in the .
public bool Contains(object key)
        {
            bool result = this._baseDictionary.ContainsKey(key);
            if (this._mergedDictionaries != null)
            {
                 Note: we do the search in reversed order as it is the 
                 Silverlight and WPF behavior.
                for (int i = this._mergedDictionaries.Count - 1; (i > -1) && !result; i--)
                {
                    result = this._mergedDictionaries[i].Contains(key);
                }
            }
            return result;
        }
public bool Contains ( object key ) { bool result = this . _baseDictionary . ContainsKey ( key ) ; if ( this . _mergedDictionaries != null ) { for ( int i = this . _mergedDictionaries . Count - 1 ; ( i > - 1 ) && ! result ; i -- ) { result = this . _mergedDictionaries [ i ] . Contains ( key ) ; } } return result ; }
Returns a value that indicates whether a specified key exists in the .
Returns a value that indicates whether a specified key exists in the .
// Search for the value in the Merged Dictionaries // // Note: we do the search in reversed order as it is the  // Silverlight and WPF behavior. //
true if an item with that key exists in the ;
otherwise, false.
true if an item with that key exists in the ; otherwise false .
key is null.
key is null .
key
object
The key to check for in the .
The key to check for in the .