Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 public IAttribute SetOperator(AttributeOperator @operator)
 {
     this.Operator = Enum.GetName(typeof(AttributeOperator), @operator);
     return(this);
 }
Ejemplo n.º 5
0
 public static CssExpression Attr(AttributeOperator op, string attribute, string value) =>
 new AttributeExpression(attribute, value, op);