protected SolutionSection(SolutionDocumentNode parent, SolutionDocLine line) : base(parent) { var match = Regex.Match(line.Content, Tag + @"\(([^)]+)\)\s+=\s+(.*)"); Category = match.Groups[1].Value; Value = match.Groups[2].Value; }
public override SolutionDocumentNode Clone(SolutionDocumentNode newParent) { var newProj = new SolutionProject(newParent, TypeGuid, Name, Path, Guid); newProj.Children.AddRange(Children.Select(x => x.Clone(newProj))); return(newProj); }
public SolutionProject(SolutionDocumentNode parent, string typeGuid, string name, string path, string guid) : base(parent) { TypeGuid = typeGuid; Name = name; Path = path; Guid = guid; }
public SolutionProject(SolutionDocumentNode parent, SolutionDocLine line) : base(parent) { var match = Regex.Match(line.Content, Tag + @"\(""?([^"")]+)""?\)\s+=\s+""([^""]+)"",\s*""([^""]+)"",\s*""([^""]+)"""); TypeGuid = match.Groups[1].Value; Name = match.Groups[2].Value; Path = match.Groups[3].Value; Guid = match.Groups[4].Value; }
public override SolutionDocumentNode Clone(SolutionDocumentNode newParent) { var newNode = new SolutionGlobalSection(newParent, Category, Value); newNode.Children.AddRange(Children.Select(x => x.Clone(newNode))); foreach (var keyValue in Values) { newNode.Values.Add(keyValue.Key, keyValue.Value); } return(newNode); }
public SolutionGlobalSection(SolutionDocumentNode parent, string category, string value) : base(parent, category, value) { }
public SolutionGlobalSection(SolutionDocumentNode parent, SolutionDocLine line) : base(parent, line) { }
public SolutionGlobal(SolutionDocumentNode parent) : base(parent) { }
public SolutionProjectSection(SolutionDocumentNode parent, SolutionDocLine line) : base(parent, line) { }
public override SolutionDocumentNode Clone(SolutionDocumentNode newParent) { return(new SolutionDocumentTrivialNode(newParent, Line)); }
public SolutionDocumentTrivialNode(SolutionDocumentNode parent, SolutionDocLine line) : base(parent) { Line = line; }
public SolutionSection(SolutionDocumentNode parent, string category, string value) : base(parent) { Category = category; Value = value; }