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"); } }
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"); }