src/Shared/EntityFramework/Core/Metadata/Edm/MemberCollection.cs
// <summary>
// Gets an item from the collection with the given identity
// </summary>
// <param name="identity"> The identity of the item to search for </param>
// <param name="ignoreCase"> Whether case is ignore in the search </param>
// <param name="item"> An item from the collection, null if the item is not found </param>
// <returns> True an item is retrieved </returns>
// <exception cref="System.ArgumentNullException">if identity argument is null</exception>
Gets an item from the collection with the given identity
Gets an item from the collection with the given identity
public override bool TryGetValue(string identity, bool ignoreCase, out EdmMember item)
        {
            if (!base.TryGetValue(identity, ignoreCase, out item))
            {
                var baseType = _declaringType.BaseType;
                if (baseType != null)
                {
                    ((StructuralType)baseType).Members.TryGetValue(identity, ignoreCase, out item);
                }
            }
            return item != null;
        }
public override bool TryGetValue ( string identity , bool ignoreCase , out EdmMember item ) { if ( ! base . TryGetValue ( identity , ignoreCase , out item ) ) { var baseType = _declaringType . BaseType ; if ( baseType != null ) { ( ( StructuralType ) baseType ) . Members . TryGetValue ( identity , ignoreCase , out item ) ; } } return item != null ; }
Gets an item from the collection with the given identity
Gets an item from the collection with the given identity
// See if it's in this collection // Now go to the parent type to find it
True an item is retrieved
True an item is retrieved
if identity argument is null
if identity argument is null
identity
string
The identity of the item to search for
The identity of the item to search for
ignoreCase
bool
Whether case is ignore in the search
Whether case is ignore in the search
EdmMember
out
item
An item from the collection, null if the item is not found
An item from the collection null if the item is not found