示例#1
0
        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));
        }
示例#2
0
 internal GlobalSectionParser(SolutionFile solutionFile, GlobalSection globalSection) : base(solutionFile, globalSection)
 {
 }
示例#3
0
 internal ProjectConfigurationPlatforms(string name = "", GlobalSection section = null) : base(ModelTypes.ProjectConfigurationPlatforms, name, section)
 {
 }
示例#4
0
 internal ConfigurationPlatforms(ModelTypes modelTypes, string name = "", GlobalSection section = null) : base(modelTypes, name, section)
 {
 }