public static PatternMatcher Parse(int id, string name, string pattern) { PatternReader reader = new PatternReader(); PatternMatcher matcher = reader.AsMatcher(pattern); matcher.Id = id; matcher.Name = name; return(matcher); }
public static PatternMatcher Parse(string pattern) { PatternReader reader = new PatternReader(); return(reader.AsMatcher(pattern)); }