Ejemplo n.º 1
0
        public bool IsAncestorOf(VssComponentDescriptor descendent)
        {
            // The child must have a longer full path
            if (descendent.FullPath.Length <= FullPath.Length)
            {
                return(false);
            }

            string fullPathWithBackslash = FullPath.AppendBackslash();

            return(descendent.FullPath.AppendBackslash().StartsWith(FullPath.AppendBackslash(), StringComparison.OrdinalIgnoreCase));
        }