src/Shared/EntityFramework/Core/Metadata/Edm/MemberCollection.cs
// <summary>
// Get the declared only members of a particular type
// </summary>
Get the declared only members of a particular type
Get the declared only members of a particular type
internal ReadOnlyMetadataCollection<T> GetDeclaredOnlyMembers<T>() where T : EdmMember
        {
            var newCollection = new MetadataCollection<T>();
            for (var i = 0; i < base.Count; i++)
            {
                var member = base[i] as T;
                if (member != null)
                {
                    newCollection.Add(member);
                }
            }
            return new ReadOnlyMetadataCollection<T>(newCollection);
        }
internal ReadOnlyMetadataCollection < T > GetDeclaredOnlyMembers < T > ( ) where T : EdmMember { var newCollection = new MetadataCollection < T > ( ) ; for ( var i = 0 ; i < base . Count ; i ++ ) { var member = base [ i ] as T ; if ( member != null ) { newCollection . Add ( member ) ; } } return new ReadOnlyMetadataCollection < T > ( newCollection ) ; }
Get the declared only members of a particular type
Get the declared only members of a particular type