Ejemplo n.º 1
0
        public override bool Match(ElementParameter param)
        {
            ElementParameterNumeric numParam = param as ElementParameterNumeric;
            if (numParam == null)
                return false;

            return value == numParam.value;
        }
Ejemplo n.º 2
0
        public override bool Match(ElementParameter param)
        {
            ElementParameterString stringParam = param as ElementParameterString;
            if (stringParam == null)
                return false;

            return value == stringParam.value;
        }
Ejemplo n.º 3
0
 public abstract bool Match(ElementParameter param);
Ejemplo n.º 4
0
 public override bool Match(ElementParameter parameter, Dictionary<string, ElementParameter> variables)
 {
     return parameter.Match(value);
 }
Ejemplo n.º 5
0
 public MatchParameterConstant(ElementParameter value)
 {
     this.value = value;
 }
Ejemplo n.º 6
0
 public abstract bool Match(ElementParameter parameter, Dictionary<string, ElementParameter> variables);
Ejemplo n.º 7
0
 public override bool Match(ElementParameter parameter, Dictionary<string, ElementParameter> variables)
 {
     // If not a wildcard, store the matching variable
     if (name.Length > 1)
     {
         variables.Add(name, parameter);
     }
     return true;
 }