src/Shared/EntityFramework/Core/Mapping/ViewGeneration/Structures/MemberProjectedSlot.cs
// <summary>
// Searches for members in <paramref name="slots" /> and returns the corresponding slots in the same order as present in
// <paramref name="members" />. Returns null if even one member is not present in slots.
// </summary>
Searches for members in  and returns the corresponding slots in the same order as present in
. Returns null if even one member is not present in slots.
Searches for members in and returns the corresponding slots in the same order as present in . Returns null if even one member is not present in slots .
internal static List<MemberProjectedSlot> GetSlots(IEnumerable<MemberProjectedSlot> slots, IEnumerable<MemberPath> members)
        {
            var result = new List<MemberProjectedSlot>();
            foreach (var member in members)
            {
                var slot = GetSlotForMember(Helpers.AsSuperTypeList<MemberProjectedSlot, ProjectedSlot>(slots), member);
                if (slot == null)
                {
                    return null;
                }
                result.Add(slot);
            }
            return result;
        }
internal static List < MemberProjectedSlot > GetSlots ( IEnumerable < MemberProjectedSlot > slots , IEnumerable < MemberPath > members ) { var result = new List < MemberProjectedSlot > ( ) ; foreach ( var member in members ) { var slot = GetSlotForMember ( Helpers . AsSuperTypeList < MemberProjectedSlot , ProjectedSlot > ( slots ) , member ) ; if ( slot == null ) { return null ; } result . Add ( slot ) ; } return result ; }
Searches for members in  and returns the corresponding slots in the same order as present in
.
Searches for members in and returns the corresponding slots in the same order as present in .
slots
IEnumerable<MemberProjectedSlot>
members
IEnumerable<MemberPath>