Esempio n. 1
0
        public bool CanTransform(string content)
        {
            if (IsDefault)
            {
                return(true);
            }

            return(!String.IsNullOrWhiteSpace(content) ? ExtractPattern.IsMatch(content) : false);
        }
 public bool CanTransform(string content)
 {
     if (IsDefault)
     {
         return(true);
     }
     if (Type == ExtractType.SubString)
     {
         return(!String.IsNullOrWhiteSpace(content) ? content.Length > StartIndex && content.Length > (StartIndex + Length) : false);
     }
     else
     {
         return(!String.IsNullOrWhiteSpace(content) ? ExtractPattern.IsMatch(content) : false);
     }
 }