c# - Visual Studio UML Class Diagram does not show Generic Constraint -


i have investmentreturncalculator abstract class in c# using .net 4.0. generic investmentreturncalculator<t> class extends class constraint where t : ibusiness

the class diagram generated in visual studio 2012 given below. not show constraint. constraint important part of design missing.

what solution/workaround display constraint in uml class diagram?

note: have referred uml class diagrams: guidelines; not address issue.

enter image description here

code

public abstract class investmentreturncalculator {     public double profitelement { get; set; }     public abstract double getinvestmentprofit();      public double calculatebaseprofit()     {         return 5;     } }  public abstract class investmentreturncalculator<t> : investmentreturncalculator t : ibusiness {     public t business { get; set; }  } 

a citation reference:

set name property parameter name template type, example, key.

set parameter kind. default class.

if want parameter accept derived classes of particular base class, set constrained value base class want.

where problem?

btw, try not mix constrained value normal constraint (set note) , don't name so.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

python - Scapy Dot11ReassoReq -