public IReadOnlyList <ProjectInformation> FindExamples() { var result = new List <ProjectInformation>(); var examples = FindProjects("examples").Concat(FindProjects("samples")); foreach (var example in examples) { result.Add(_parser.Parse(example)); } return(result.OrderBy(x => x.Order).ToList()); }
public IReadOnlyList <ProjectInformation> FindExamples() { var result = new List <ProjectInformation>(); var folders = GetExampleFolders(); var examples = folders.Select(FindProjects).Aggregate((acc, xs) => acc.Concat(xs)); foreach (var example in examples) { result.Add(_parser.Parse(example)); } return(result .Where(x => x.Visible) .OrderBy(x => x.Order) .ToList()); }