Author Topic: Importing the structure of .NET framework  (Read 1185 times)

Mudarb

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Importing the structure of .NET framework
« on: October 16, 2006, 12:36:48 am »
Good day,

I want to build my class diagrams. Some of my classes inherits from built in .NET framework classes like Form, Collection, Hashtable, ... etc.

Is it possible to import the structure of the framework's classes to be used in my diagrams?

Regards,
Mudar

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing the structure of .NET framework
« Reply #1 on: October 16, 2006, 04:23:45 am »
Yes Mudar, it is,

Use the Import Binary Module for this. It is available for .Net and Java constructs.

To get your feet wet, check for the above in the EA documentation. Then search the forum for this to get a lot of additional information.

David
« Last Edit: October 16, 2006, 04:24:06 am by Midnight »
No, you can't have it!

Mudarb

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing the structure of .NET framework
« Reply #2 on: October 16, 2006, 04:57:42 am »
Thank you for your quick help Dav,

I followed the instruction that were mentioned in previous replies and I ended up having a dialog box asking me to locate the binary module to be imported. Now the question is do you know where is the VB.NET library file?  ???

TIA

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Importing the structure of .NET framework
« Reply #3 on: October 16, 2006, 05:53:11 am »
Mudar.

It might be C:\WINDOWS\Microsoft.NET\Framework\<insert your framework version here>\Microsoft.VisualBasic.dll

but somehow I dont think thats what you are really after.

Before you start this, create a new empty EA project.  Then, try importinmg some of the framework libraries that look interesting.  Probably mscorlib.dll and System.Windows.Forms would be a good start.

hth
bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing the structure of .NET framework
« Reply #4 on: October 16, 2006, 06:20:05 am »
Bruce has the right idea, but the .dll file you need is probably different.

Once you locate the directory - follow Bruce's instructions - the files are all of the form <namespace>.dll. You'll see the hierarchy of .Net namespaces just like you would when associating namespaces in a VS.Net project, they have the same syntax: <parent>.<child>.dll.
No, you can't have it!

Mudarb

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing the structure of .NET framework
« Reply #5 on: October 16, 2006, 06:29:45 am »
THANKS!! That's it  ;D ;D

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6721
  • Karma: +63/-6
    • View Profile
Re: Importing the structure of .NET framework
« Reply #6 on: October 16, 2006, 03:31:43 pm »
MSDN also tells you where individual classes are found.

Start at http://msdn2.microsoft.com/en-us/library/ms229335.aspx and go to the namespace you want.  mscorlib.dll is one that contains a lot of useful classes.
« Last Edit: October 16, 2006, 03:32:39 pm by simonm »
Eve

support@sparxsystems.com

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing the structure of .NET framework
« Reply #7 on: October 16, 2006, 04:30:50 pm »
Excellent advice Simon. Thanks much.
No, you can't have it!