GitSharp.Core.Transport.OpenSshConfig.isHostMatch C# (CSharp) Method

isHostMatch() private static method

private static isHostMatch ( string pattern, string name ) : bool
pattern string
name string
return bool
        private static bool isHostMatch(string pattern, string name)
        {
            FileNameMatcher fn;
            try
            {
                fn = new FileNameMatcher(pattern, null);
            }
            catch (InvalidPatternException)
            {
                return false;
            }
            fn.Append(name);
            return fn.IsMatch();
        }