예제 #1
0
        public string GetText(ModelQuery query, string title = null)
        {
            if (title.IsNotEmpty())
            {
                _stringWriter.WriteLine(title);
            }

            _stringWriter.WriteLine("");

            var model = _graph;

            var serviceTypes = query.Query(model);

            writeContentsOfServiceTypes(serviceTypes);

            return(_stringWriter.ToString());
        }
예제 #2
0
        public string GetText(ModelQuery query, string title = null, WhatDoIHaveDisplay display = WhatDoIHaveDisplay.Summary)
        {
            using (var writer = new StringWriter())
            {
                if (title.IsNotEmpty())
                {
                    writer.WriteLine(title);
                }

                writer.WriteLine("");

                var model = _graph;

                var serviceTypes = query.Query(model);

                writeContentsOfServiceTypes(serviceTypes, writer, display);

                return(writer.ToString());
            }
        }