Example #1
0
 private SolutionInfo(
     SolutionAttributes attributes,
     IReadOnlyList <ProjectInfo> projects,
     IReadOnlyList <AnalyzerReference> analyzerReferences
     )
 {
     Attributes         = attributes;
     Projects           = projects;
     AnalyzerReferences = analyzerReferences;
 }
Example #2
0
        private SolutionInfo With(
            SolutionAttributes attributes      = null,
            IEnumerable <ProjectInfo> projects = null)
        {
            var newAttributes = attributes ?? Attributes;
            var newProjects   = projects ?? Projects;

            if (newAttributes == Attributes &&
                newProjects == Projects)
            {
                return(this);
            }

            return(new SolutionInfo(newAttributes, newProjects));
        }
Example #3
0
        private SolutionInfo With(
            SolutionAttributes attributes = null,
            IEnumerable<ProjectInfo> projects = null)
        {
            var newAttributes = attributes ?? Attributes;
            var newProjects = projects ?? Projects;

            if (newAttributes == Attributes &&
                newProjects == Projects)
            {
                return this;
            }

            return new SolutionInfo(newAttributes, newProjects);
        }
Example #4
0
 private SolutionInfo(SolutionAttributes attributes, IEnumerable <ProjectInfo> projects)
 {
     Attributes = attributes;
     Projects   = projects.ToImmutableReadOnlyListOrEmpty();
 }
Example #5
0
 private SolutionInfo(SolutionAttributes attributes, IEnumerable<ProjectInfo> projects)
 {
     Attributes = attributes;
     Projects = projects.ToImmutableReadOnlyListOrEmpty();
 }
Example #6
0
 private SolutionInfo(SolutionAttributes attributes, IReadOnlyList <ProjectInfo> projects)
 {
     Attributes = attributes;
     Projects   = projects;
 }