public ITagElement Tag(string tag) { if (string.IsNullOrEmpty(tag)) { throw new ArgumentNullException("tag"); } return(TagElement.Create(tag, false)); }
public ITagElement Child(string tag) { return(TagElement.Create(tag, this.ExpressionParts, this.tagIndex + 1, false)); }
public ITagElement Parent(string tag) { this.ExpressionParts[this.attributeIndex - 1] = "]"; return(TagElement.Create(tag, this.ExpressionParts, 0, true)); }
public ITagElement Parent(string tag) { return(TagElement.Create(tag, this.ExpressionParts, 0, true)); }
public ITagElement Child(string tag) { // replace " and " with closing bracket this.ExpressionParts[this.ExpressionParts.Count - 1] = "]"; return(TagElement.Create(tag, this.ExpressionParts, -1, false)); }