Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

c# datatypes

Status
Not open for further replies.

jby1

Programmer
Apr 29, 2003
403
GB
I am new to using Visio (Professional 2002) so I am not certain that I can do this.

I am designing an application to be written in C#. However the only language datatypes I can see are for C++, IDL and VB. I have manually defined C# types, but I am hoping that there is some way I can import the full set.

Also, is there any way I can import the C# object library, so I can show them in my designs?

Thanks for any help at all!
 
My Visio 2002 installation (Enterprise Architect) had those to start with. Have you looked at the menu UML > Options > UML Document? (You have to be in a UML document for the menu to appear.) Maybe Vision Pro does not come with the C# types, but that would be strange. If that's the case, the Service Release 1 for Vision Enterprise 2002 may correct it.

Note that the C# types provided are only the fundamental language types. "string" is there, but not DateTime or TimeStamp or DataSet, so you're not missing a lot (16 types precisely). I do not know of a C# object library for Vision 2002, yet there may one somewhere (if you find it, please let me know at thierry@hitechservices.ca). I just create them as need be, but of course I don't go to the trouble of entering all the attributes, properties and methods.

In any event, Vision 2002 has serious limitations when modeling C# code. Override and New methods are ill-supported and initializers work weird. So I use Visio mostly for creating the application architecture, entering the main pieces of code that relate directly to that architecture and generating the first-cut of the actual code, but not more. Yet, that's quite useful.
 
Thank you for your response, I had posted that so long ago I had practically forgotten about it!

In the meantime I have installed Enterprise Architect like you yourself did, and there were the C# native types. I also found all of the limitations you have mentioned, and have found that Visio is really only useful for generated the first cut. Still, cuts out a lot of laborious typing!

Your response still deserves a star though!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top