private string[] filterPathsByRegex(string[] filePaths) { ListWrapper <string> mathes = new ListWrapper <string>(); foreach (string filePath in filePaths) { if (RegexWrapper.IsMatch(filePath, this.rule)) { mathes.AddBack(filePath); } } return(mathes.ToArray()); }