internal static IEnumerable <LoaderFacetType> GetFacetTypesImplementing(TypeMoniker type) { if (type == null) { throw new ArgumentNullException("type"); } return(FacetTypes.Where(x => x.TypeDescriptor.Implements(type))); }
internal static LoaderFacetType GetFacetInfo(TypeMoniker facetType) { return(FacetTypes.Where(x => x.Type == facetType).Single()); }
internal static LoaderFacetType GetFacetInfo(int databaseId) { return(FacetTypes.Where(x => x.DatabaseId == databaseId).SingleOrDefault()); }
internal static IEnumerable <LoaderFacetType> GetFacetTypesForParameterTypes(IEnumerable <TypeDescriptor> parameterTypes) { return(FacetTypes.Where(ft => parameterTypes.Any(pt => ft.TypeDescriptor.Implements(pt)))); }