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