public static string GetDiagramText(ClassDiagram diagram)
        {
            var buffer    = new StringBuilder();
            var generator = new BufferedClassDiagramGenerator(diagram, buffer);

            generator.Generate();

            return(buffer.ToString());
        }
        public static string GetDiagramText(ClassDiagram diagram)
        {
            var buffer = new StringBuilder();
            var generator = new BufferedClassDiagramGenerator(diagram, buffer);
            
            generator.Generate();

            return buffer.ToString();
        }