コード例 #1
0
ファイル: Program.cs プロジェクト: gorangrubic/DgmlBuilder
        private static void Main()
        {
            var assemblyPaths  = new[] { @".\OpenSoftware.DgmlBuilder.dll" };
            var excludeFilters = new IExcludeFilter[]
            {
                new ExcludeByNameSpace(x => x.Contains("OpenSoftware") == false),
                new ExcludeByNameSpace(x => x.EndsWith(".Annotations")),
                new ExcludeByCustomAttribute <CompilerGeneratedAttribute>()
            };

            using (var loader = new TypesLoader(assemblyPaths, excludeFilters))
            {
                var types = loader.Load().ToArray();
                var graph = TypesVisualizer.Types2Dgml(types);
                graph.WriteToFile(@"../../class-diagram.dgml");
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: pantosha/DgmlBuilder
        private static void Main()
        {
            var assemblyPaths = new[] { @"OpenSoftware.DgmlBuilder.dll" };

            var excludeFilters = new IExcludeFilter[]
            {
                new ExcludeByNameSpace(x => x.Contains("OpenSoftware") == false),
                new ExcludeByNameSpace(x => x.EndsWith(".Annotations")),
                new ExcludeByCustomAttribute <CompilerGeneratedAttribute>()
            };

            using var loader = new TypesLoader(assemblyPaths, excludeFilters);
            var types = loader.Load().ToArray();
            var graph = TypesVisualizer.Types2Dgml(types);

            //graph.GraphDirection = GraphDirection.LeftToRight;
            //graph.Layout = Layout.Sugiyama;
            //graph.NeighborhoodDistance = 1;

            graph.WriteToFile(@"../../../class-diagram.dgml");
        }