Пример #1
0
        public ITagElement Tag(string tag)
        {
            if (string.IsNullOrEmpty(tag))
            {
                throw new ArgumentNullException("tag");
            }

            return(TagElement.Create(tag, false));
        }
Пример #2
0
 public ITagElement Child(string tag)
 {
     return(TagElement.Create(tag, this.ExpressionParts, this.tagIndex + 1, false));
 }
Пример #3
0
 public ITagElement Parent(string tag)
 {
     this.ExpressionParts[this.attributeIndex - 1] = "]";
     return(TagElement.Create(tag, this.ExpressionParts, 0, true));
 }
Пример #4
0
 public ITagElement Parent(string tag)
 {
     return(TagElement.Create(tag, this.ExpressionParts, 0, true));
 }
Пример #5
0
 public ITagElement Child(string tag)
 {
     // replace " and " with closing bracket
     this.ExpressionParts[this.ExpressionParts.Count - 1] = "]";
     return(TagElement.Create(tag, this.ExpressionParts, -1, false));
 }