Ejemplo n.º 1
0
 public selectQuery(string _rowsVariable, GroupCollection attribCollection)
 {
     string[] holdCollection = attribCollection.Cast<Group>().Skip(1).Select(n => n.Value.Trim()).ToArray();
     this.rowsVariable = _rowsVariable;
     this.isNumeric = holdCollection[0] == "LENGTH";
     this.isPositive = holdCollection[1] == "IS";
     this.usedOperator = baseDefinitions.operatorConversion[holdCollection[1]];
     this.queryRange = holdCollection[2] == "ANY" ? selector.Any : holdCollection[2] == "EVERY" ? selector.Every : selector.None;
     this.comparedTo = codeParsing.serializeNumericString(holdCollection[3]);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the input typed as a generic IEnumerable of the groups
 /// </summary>
 /// <returns></returns>
 public static IEnumerable <System.Text.RegularExpressions.Group> AsEnumerable(
     this System.Text.RegularExpressions.GroupCollection gc)
 {
     return(gc.Cast <Group>());
 }