Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. The best algorithm to get information (class, methos, enum, ...) in C# project

The best algorithm to get information (class, methos, enum, ...) in C# project

Scheduled Pinned Locked Moved C#
csharpc++algorithmshelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    ndkit
    wrote on last edited by
    #1

    Hi all, Curently, I have a big solution (include C#, VB, C++ projects). LOC of this solution is about 1000 KLOC. I want to create a tool to get all information in source file as below: class, method, enum, parameter of method, all place in source code where use class or method, ... Can you help me to find the best algorithm to get these information? Thanks for your support.

    S P 2 Replies Last reply
    0
    • N ndkit

      Hi all, Curently, I have a big solution (include C#, VB, C++ projects). LOC of this solution is about 1000 KLOC. I want to create a tool to get all information in source file as below: class, method, enum, parameter of method, all place in source code where use class or method, ... Can you help me to find the best algorithm to get these information? Thanks for your support.

      S Offline
      S Offline
      Sauro Viti
      wrote on last edited by
      #2

      Visual Studio already has a tool like that: is the Object Browser (you can show it from the View menu). IT shows a hierachical view of all the assemblies in your solution, with namespaces, classes, fields, properties, methods, etc. (if you provided XML comments for the shown items, the informations you have provided through them are shown too). To show informations about places in source code where a class or method is used, you can right-click on the item in the Object Browser and select Find All References.

      N 1 Reply Last reply
      0
      • S Sauro Viti

        Visual Studio already has a tool like that: is the Object Browser (you can show it from the View menu). IT shows a hierachical view of all the assemblies in your solution, with namespaces, classes, fields, properties, methods, etc. (if you provided XML comments for the shown items, the informations you have provided through them are shown too). To show informations about places in source code where a class or method is used, you can right-click on the item in the Object Browser and select Find All References.

        N Offline
        N Offline
        ndkit
        wrote on last edited by
        #3

        Thanks for your answer. But I still want to build my own tool :). Beside, I also have a solution2 that reference to solution1 (location of them in different folder). And this tool can be search in both solution (just give it the location, and it will return the result)

        1 Reply Last reply
        0
        • N ndkit

          Hi all, Curently, I have a big solution (include C#, VB, C++ projects). LOC of this solution is about 1000 KLOC. I want to create a tool to get all information in source file as below: class, method, enum, parameter of method, all place in source code where use class or method, ... Can you help me to find the best algorithm to get these information? Thanks for your support.

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          Have VS produce XML documentation and read that.

          N 1 Reply Last reply
          0
          • P PIEBALDconsult

            Have VS produce XML documentation and read that.

            N Offline
            N Offline
            ndkit
            wrote on last edited by
            #5

            Just in case my code is fully documented with XML comments. Beside, with XML comment, I can't find reference of classes or methods that are using somewhere in source code.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups