src/Shared/EntityFramework/Core/Mapping/ViewGeneration/Structures/TypeRestriction.cs
// <summary>
// Given a list of <paramref name="types" /> (which can contain nulls), returns a corresponding list of
// <see
//     cref="TypeConstant" />
// s for those types.
// </summary>
Given a list of  (which can contain nulls), returns a corresponding list of

s for those types.
Given a list of ( which can contain nulls ) returns a corresponding list of s for those types .
private static IEnumerable<Constant> CreateTypeConstants(IEnumerable<EdmType> types)
        {
            foreach (var type in types)
            {
                if (type == null)
                {
                    yield return Constant.Null;
                }
                else
                {
                    yield return new TypeConstant(type);
                }
            }
        }
private static IEnumerable < Constant > CreateTypeConstants ( IEnumerable < EdmType > types ) { foreach ( var type in types ) { if ( type == null ) { yield return Constant . Null ; } else { yield return new TypeConstant ( type ) ; } } }
Given a list of  (which can contain nulls), returns a corresponding list of
Given a list of ( which can contain nulls ) returns a corresponding list of
types
IEnumerable<EdmType>