rtfs / dll2mmd Goto Github PK
View Code? Open in Web Editor NEWGenerating mermaid.js class-diagram from dotnet dll files.
Generating mermaid.js class-diagram from dotnet dll files.
When I create a diagram that includes a parent class with many properties and methods and multiple classes that inherit from it, I would like to have an option to hide all inherited members on the child classes in the diagram (unless they are explicitly overridden). This would make it easier to see which child classes implement/override specific inherited members.
I would also like it if abstract classes and abstract members were annotated in the diagram output as documented on Mermaid.js
(If this option already exists, it should be documented in the --help response and readme)
Example Input:
public abstract class AbstractParent
{
public virtual string String { get; set; }
public abstract int Int { get; set; }
public virtual DateTime DateTime { get; set; }
public abstract void Method();
}
public class ConcreteChild : AbstractParent
{
public override int Int { get; set; }
public override void Method() { }
}
public class ConcreteGrandChild : ConcreteChild
{
public override string String { get; set; }
}
Current Output:
classDiagram
class AbstractParent
AbstractParent : +String String
AbstractParent : +Int Int
AbstractParent : +DateTime DateTime
AbstractParent : +Method() Void
class ConcreteChild
ConcreteChild : +Int Int
ConcreteChild : +String String
ConcreteChild : +DateTime DateTime
ConcreteChild : +Method() Void
class ConcreteGrandChild
ConcreteGrandChild : +String String
ConcreteGrandChild : +Int Int
ConcreteGrandChild : +DateTime DateTime
ConcreteGrandChild : +Method() Void
AbstractParent <|-- ConcreteChild
ConcreteChild <|-- ConcreteGrandChild
Desired output with "Hide Inherited" option enabled and <<abstract>> mermaid notation:
classDiagram
class AbstractParent
<<abract>> AbstractParent
AbstractParent : +String String
AbstractParent : +Int Int*
AbstractParent : +DateTime DateTime
AbstractParent : +Method() Void*
class ConcreteChild
ConcreteChild : +Int Int
ConcreteChild : +Method() Void
class ConcreteGrandChild
ConcreteGrandChild : +String String
AbstractParent <|-- ConcreteChild
ConcreteChild <|-- ConcreteGrandChild
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.