示例#1
0
        public virtual bool ShouldRenderNamespaceFile(CodeNamespace codeNamespace)
        {
            // if the module already has a class with the same name, it's going to be declared automatically
            var namespaceNameLastSegment = codeNamespace.Name.Split('.').Last().ToLowerInvariant();

            return(_configuration.ShouldWriteBarrelsIfClassExists || codeNamespace.FindChildByName <CodeClass>(namespaceNameLastSegment, false) == null);
        }