예제 #1
0
 private string ItemToPattern(ISingleCharRx expr)
 {
     var subClass = expr as IClassRx;
     if (subClass != null && Positive != subClass.Positive)
     {
         throw new ArgumentException("Cannot mix positive and negative character classes", "expr");
     }
     return expr.PatternInsideClass;
 }
예제 #2
0
        private string ItemToPattern(ISingleCharRx expr)
        {
            var subClass = expr as IClassRx;

            if (subClass != null && Positive != subClass.Positive)
            {
                throw new ArgumentException("Cannot mix positive and negative character classes", "expr");
            }
            return(expr.PatternInsideClass);
        }