protected override ParseResult OnParse(string content) { Regex regex = new Regex("^GlobalSection([(]{1})([a-zA-Z]{1,255})([)]{1})(\\s*)([=]{1})(\\s*)([a-zA-Z]{1,255})"); if (regex.IsMatch(content)) { ParseResult parseResult = new ParseResult(); GlobalSection globalSection = new GlobalSection(string.Empty, this.Global); parseResult.Model = globalSection; return(parseResult); } else if (content == "EndGlobal") { this.Model.Completed = true; this.Model.Valid = this.Model.Validate(); } return(base.OnParse(content)); }
internal GlobalSectionParser(SolutionFile solutionFile, GlobalSection globalSection) : base(solutionFile, globalSection) { }
internal ProjectConfigurationPlatforms(string name = "", GlobalSection section = null) : base(ModelTypes.ProjectConfigurationPlatforms, name, section) { }
internal ConfigurationPlatforms(ModelTypes modelTypes, string name = "", GlobalSection section = null) : base(modelTypes, name, section) { }