コード例 #1
0
 private IEnumerable<ScaffolderInfo> FindScaffolders(ProjectItem customScaffoldersFolder, string scaffolderName)
 {
     var filter = GetFilterForScaffolderName(scaffolderName);
     return from projectItem in customScaffoldersFolder.GetChildItemsIncludingSubfolders(_fileSystem, filter, VsConstants.VsProjectItemKindPhysicalFile)
            let scaffolderInfo = GetScaffolderInfo(null, projectItem.GetFullPath())
            where scaffolderInfo != null
            select scaffolderInfo;
 }
コード例 #2
0
        private IEnumerable <ScaffolderInfo> FindScaffolders(ProjectItem customScaffoldersFolder, string scaffolderName)
        {
            var filter = GetFilterForScaffolderName(scaffolderName);

            return(from projectItem in customScaffoldersFolder.GetChildItemsIncludingSubfolders(_fileSystem, filter, VsConstants.VsProjectItemKindPhysicalFile)
                   let scaffolderInfo = GetScaffolderInfo(null, projectItem.GetFullPath())
                                        where scaffolderInfo != null
                                        select scaffolderInfo);
        }