示例#1
0
 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;
 }
示例#2
0
        public UMLMethod(string name, UMLDataType type, UMLVisibility visibility, params UMLParameter[] parameters)
        {
            Name       = name;
            ReturnType = type;

            Parameters.AddRange(parameters);
            Visibility = visibility;
        }
示例#3
0
 private static char GetVisibility(UMLVisibility vis)
 {
     return(vis switch
     {
         UMLVisibility.Private => '-',
         UMLVisibility.Protected => '#',
         UMLVisibility.Public => '+',
         UMLVisibility.Internal => '~',
         _ => ' ',
     });
示例#4
0
 public UMLMethod(UMLDataType type, UMLVisibility visibility, params UMLParameter[] parameters) : this("constructor", type, visibility, parameters)
 {
     IsConstructor = true;
 }