Nemerle.VisualStudio.Project.NemerleProjectNode.GetNamespace C# (CSharp) Method

GetNamespace() private method

private GetNamespace ( HierarchyNode node ) : string
node HierarchyNode
return string
        private string GetNamespace(HierarchyNode node)
        {
            var namespaces = new List<string>();
            for (var currentNode = node; currentNode != this; currentNode = currentNode.Parent)
                namespaces.Add(currentNode.NodeProperties.Name);
            var rootNamespace = GetProjectProperty(ProjectFileConstants.RootNamespace, false);
            if (!string.IsNullOrEmpty(rootNamespace))
                namespaces.Add(rootNamespace);
            namespaces.Reverse();
            return string.Join(".", namespaces);
        }