/// <devdoc> /// Sees if the name given matches the name filter we have. /// </devdoc> /// <internalonly/> private bool MatchPattern(string relativePath) { string name = System.IO.Path.GetFileName(relativePath); return(name != null? PatternMatcher.StrictMatchPattern(_filter, name) : false); }
/// <devdoc> /// Sees if the name given matches the name filter we have. /// </devdoc> /// <internalonly/> private bool MatchPattern(string relativePath) { string name = System.IO.Path.GetFileName(relativePath); if (name != null) { return(PatternMatcher.StrictMatchPattern(filter.ToUpper(CultureInfo.InvariantCulture), name.ToUpper(CultureInfo.InvariantCulture))); } else { return(false); } }
private bool MatchPattern(string relativePath) { string fileName = System.IO.Path.GetFileName(relativePath); return((fileName != null) && PatternMatcher.StrictMatchPattern(this.filter.ToUpper(CultureInfo.InvariantCulture), fileName.ToUpper(CultureInfo.InvariantCulture))); }