示例#1
0
        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;
        }
示例#2
0
        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);
        }
示例#3
0
 public SolutionProject(SolutionDocumentNode parent, string typeGuid, string name, string path, string guid)
     : base(parent)
 {
     TypeGuid = typeGuid;
     Name     = name;
     Path     = path;
     Guid     = guid;
 }
示例#4
0
        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;
        }
示例#5
0
        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);
        }
示例#6
0
 public SolutionGlobalSection(SolutionDocumentNode parent, string category, string value) : base(parent, category, value)
 {
 }
示例#7
0
 public SolutionGlobalSection(SolutionDocumentNode parent, SolutionDocLine line) : base(parent, line)
 {
 }
示例#8
0
 public SolutionGlobal(SolutionDocumentNode parent) : base(parent)
 {
 }
示例#9
0
 public SolutionProjectSection(SolutionDocumentNode parent, SolutionDocLine line) : base(parent, line)
 {
 }
示例#10
0
 public override SolutionDocumentNode Clone(SolutionDocumentNode newParent)
 {
     return(new SolutionDocumentTrivialNode(newParent, Line));
 }
示例#11
0
 public SolutionDocumentTrivialNode(SolutionDocumentNode parent, SolutionDocLine line) : base(parent)
 {
     Line = line;
 }
示例#12
0
 public SolutionSection(SolutionDocumentNode parent, string category, string value) : base(parent)
 {
     Category = category;
     Value    = value;
 }