public static GenericSolutionFileGlobalSection New(string name, PreOrPostSolution preOrPostSolution)
        {
            var output = new GenericSolutionFileGlobalSection
            {
                Name = name,
                PreOrPostSolution = preOrPostSolution,
            };

            return(output);
        }
Exemple #2
0
        public static GenericSolutionFileGlobalSection AcquireGenericGlobalSection(this List <ISolutionFileGlobalSection> globalSections, string globalSectionName, PreOrPostSolution preOrPostSolution)
        {
            var globalSection = globalSections.AcquireGlobalSectionByName(globalSectionName, () => GenericSolutionFileGlobalSection.New(globalSectionName, preOrPostSolution));

            return(globalSection);
        }
Exemple #3
0
        public static bool HasGenericGlobalSection(this IEnumerable <ISolutionFileGlobalSection> globalSections, string globalSectionName, out GenericSolutionFileGlobalSection globalSection)
        {
            var output = globalSections.HasGlobalSectionByName(globalSectionName, out globalSection);

            return(output);
        }