public AttributeOperatorSelector(string attr, AttributeOperator op, string value, int start, int stop, string filePath) { Attribute = attr; Operator = op; Value = value; Start = start; Stop = stop; FilePath = filePath; }
public AttributeSelector(string attribute, AttributeOperator operand, string value) { if (operand != AttributeOperator.Unmatched) { if (value == null) { throw new ArgumentNullException("value", "value must be set if matching"); } } _attribute = attribute; _operand = operand; _value = value; _valueAsString = GetValueAsString(value); }
public IAttribute SetOperator(AttributeOperator @operator) { this.Operator = Enum.GetName(typeof(AttributeOperator), @operator); return(this); }
public static CssExpression Attr(AttributeOperator op, string attribute, string value) => new AttributeExpression(attribute, value, op);