public UMLProperty(string name, UMLDataType type, UMLVisibility visibility, ListTypes listType, bool isStatic, bool isAbstract, bool drawnWithLine) : base(name, type, listType) { Visibility = visibility; IsStatic = isStatic; IsAbstract = isAbstract; DrawnWithLine = drawnWithLine; }
public UMLMethod(string name, UMLDataType type, UMLVisibility visibility, params UMLParameter[] parameters) { Name = name; ReturnType = type; Parameters.AddRange(parameters); Visibility = visibility; }
private static char GetVisibility(UMLVisibility vis) { return(vis switch { UMLVisibility.Private => '-', UMLVisibility.Protected => '#', UMLVisibility.Public => '+', UMLVisibility.Internal => '~', _ => ' ', });
public UMLMethod(UMLDataType type, UMLVisibility visibility, params UMLParameter[] parameters) : this("constructor", type, visibility, parameters) { IsConstructor = true; }