Model diagram generator for .NET using yUML.me
Based on Chris Owen's yuml-dotnet
Use the included YumlFactory
or create your own implementation by inheriting the IYumlFactory
interface.
Pass your model classes into the constructor.
var types = new List<Type>
{
typeof(Person)
};
var factory = new YumlFactory(types);
Then get the uri to the model diagram by calling the GenerateClassDiagramUri
method.
var imageUri = factory.GenerateClassDiagramUri();
To get public properties and methods, use the DetailLevel
parameters:
var imageUri = factory.GenerateClassDiagramUri(DetailLevel.PublicProperties, DetailLevel.PublicMethods);
// It is also possible to show private properties and methods
// using the DetailLevel.PrivateProperties and DetailLevel.PrivateMethods enumerations.
NOTE: The uri's are cached for 30 000 seconds to enhance performance.