Esempio n. 1
0
        private async Task <IEnumerable <RoslynPageType> > GetPagesAsync(Solution solution)
        {
            var derivedClasses = await GetDerivedClassesAsync(solution, ReflectionNames.BASE_PAGE_TYPE);

            return(derivedClasses.Select(dc => {
                var page = new RoslynPageType(dc);
                page.Fill();
                return page;
            }));
        }
Esempio n. 2
0
 public IEnumerable <RoslynPageType> GetPages(IEnumerable <INamedTypeSymbol> types)
 {
     return(types
            .Where(t => t.AllInterfaces.Any(i => i.GetFullTypeName() == ReflectionNames.BASE_PAGE_INTERFACE_FULL_NAME))
            .Select(dc => {
         var page = new RoslynPageType(dc);
         page.Fill();
         return page;
     }));
 }