Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi Guys
I would like to know how do you model the latest implementation of c# properties, i mean this
C#
Public string People{get;set;}

in visio diagrams,please share a link if you can. I've been doing it mostly in java.
Thank you in advance
Mninawa
Posted
Comments
Sandeep Mewara 13-Jul-12 9:53am    
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.
Mninawa 13-Jul-12 10:06am    
Hi Sandeep
What i want to do is to model a class diagram in visio,an example would be shapes thus Rectangle and Square.My struggle is to model the properties in visio like this Public string Size{get;set;} etc etc

Hi,

I think you could draw a diagram model from you entity window class library project into your UI website in visual studio.

Example:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace cbn.Entities
{
    [Serializable]
    public class Cable_Trn
    {
        public long RecId { get; set; }
        public string CableDescription { get; set; }
    }

    [Serializable]
    public class AuditTrail : Cable_Trn
    {
        public long RecId { get; set; }
        public string AuditDesc { get; set; } 
    }

}



Compiled the above entity windows class library then make a reference into your windows class entity from the UI website. Right click on your UI website and then click on view Class Diagram. Drag the entity class into an empty diagram tool box. By then will create an entity class diagram.

AuditTrail referencing into Cable_Trn.

Hope this could help a lot.

Regards,
 
Share this answer
 
Visio does not have full implementation of UML. Too many missing pieces.
 
Share this answer
 
it should be something like this but in visio
C#
+------------------------+
| FooClass               |
|------------------------|
|«property» + Foo : int  |
|------------------------|
| +DooFoo(in myParam:int)|
+------------------------+

Thanx to everyone who contributed..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900