public static GenericSolutionFileGlobalSection New(string name, PreOrPostSolution preOrPostSolution) { var output = new GenericSolutionFileGlobalSection { Name = name, PreOrPostSolution = preOrPostSolution, }; return(output); }
public static GenericSolutionFileGlobalSection AcquireGenericGlobalSection(this List <ISolutionFileGlobalSection> globalSections, string globalSectionName, PreOrPostSolution preOrPostSolution) { var globalSection = globalSections.AcquireGlobalSectionByName(globalSectionName, () => GenericSolutionFileGlobalSection.New(globalSectionName, preOrPostSolution)); return(globalSection); }
public static bool HasGenericGlobalSection(this IEnumerable <ISolutionFileGlobalSection> globalSections, string globalSectionName, out GenericSolutionFileGlobalSection globalSection) { var output = globalSections.HasGlobalSectionByName(globalSectionName, out globalSection); return(output); }