Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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);
            }
        }
Exemplo n.º 3
0
        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)));
        }