示例#1
0
        /// <summary>
        /// Creates a new <see cref="NestedProjectsGlobalSection"/> with the <see cref="NestedProjectsGlobalSection.GlobalSectionName"/> and <see cref="PreOrPostSolution.PreSolution"/>.
        /// </summary>
        public static NestedProjectsGlobalSection New()
        {
            var output = new NestedProjectsGlobalSection
            {
                Name = NestedProjectsGlobalSection.GlobalSectionName,
                PreOrPostSolution = PreOrPostSolution.PreSolution,
            };

            return(output);
        }
示例#2
0
        public static bool HasNestedProjectsGlobalSection(this IEnumerable <ISolutionFileGlobalSection> globalSections, out NestedProjectsGlobalSection nestedProjectsSolutionFileGlobalSection)
        {
            var output = globalSections.HasGlobalSectionByName(NestedProjectsGlobalSection.GlobalSectionName, out nestedProjectsSolutionFileGlobalSection);

            return(output);
        }