enumerate files and objects in the .net project

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boris Pelmenstein via .NET 247

    enumerate files and objects in the .net project

    (Type your message here)

    I want to get the list of the files and objects (e.g. classes) inmy .net project.
    Currently I see only one way:
    to get the folder containing the solution, get all the files withthe extension ".vb", next the files with the other givenextension (if I know it), etc. However here I get the list ofthe files ONLY - without knowledge about object's name and typethat this file represents.

    May be anyone knows if another way does exist to get theproject's objects list does exist on the object level of theproject?
    For example from enumerating the project objects (below is wantedpseudocod e):

    for each obj in the MySolution.obje cts
    console.writeli ne(obj.name)
    next

    Thank you very much in advance
    Boris

    --------------------------------
    From: Boris Pelmenstein

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>8OpveubkfUO duzUPYA2Xjg==</Id>
  • Cor Ligthert

    #2
    Re: enumerate files and objects in the .net project

    Hi Boris,

    Source files tells you nothing about classes and objects, you can have one
    file with thousand classes.

    How to get the class names I do not know however for your objects you can
    start here to see it if will help you to reach your goal.




    I hope this helps

    Cor


    Comment

    Working...