public void Sort() { Configurations = Configurations.OrderBy(c => c.PlatformName).ThenBy(c => c.SolutionFileName).ThenBy(c => c.Name).ToArray(); ResolvedProjects.Sort((p0, p1) => { int projectNameComparison = p0.ProjectName.CompareTo(p1.ProjectName); if (projectNameComparison != 0) { return(projectNameComparison); } return(p0.TargetDefault.CompareTo(p1.TargetDefault)); }); }
public void Merge(ConfigurationsPerBff other) { Debug.Assert(other.BffFilePath == BffFilePath); ProjectsWereFiltered = ProjectsWereFiltered && other.ProjectsWereFiltered; var merged = new HashSet <Solution.Configuration>(Configurations); foreach (Solution.Configuration conf in other) { merged.Add(conf); } ResolvedProjects.AddRange(other.ResolvedProjects); Configurations = merged.ToArray(); }