Example #1
0
        internal static IEnumerable <LoaderFacetType> GetFacetTypesImplementing(TypeMoniker type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            return(FacetTypes.Where(x => x.TypeDescriptor.Implements(type)));
        }
Example #2
0
 internal static LoaderFacetType GetFacetInfo(TypeMoniker facetType)
 {
     return(FacetTypes.Where(x => x.Type == facetType).Single());
 }
Example #3
0
 internal static LoaderFacetType GetFacetInfo(int databaseId)
 {
     return(FacetTypes.Where(x => x.DatabaseId == databaseId).SingleOrDefault());
 }
Example #4
0
 internal static IEnumerable <LoaderFacetType> GetFacetTypesForParameterTypes(IEnumerable <TypeDescriptor> parameterTypes)
 {
     return(FacetTypes.Where(ft => parameterTypes.Any(pt => ft.TypeDescriptor.Implements(pt))));
 }