fetch a fragment of source code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a vb.net program that needs to display a few fragments of its source
code, typically one to five lines for each fragment, and each line contains
one assignment statement. I need to do this in a few places (about 10) in a
medium size program (about 10k lines).

In the old C days, I would use the stringize operator to capture a few
source fragments. No such thing in VB (too bad, actually). I need this to
work in both debug and production environments. I'm currently at .NET 2003
FW 1.1, and I'll upgrade if needed to solve this problem.

Any ideas?
 
I have a vb.net program that needs to display a few fragments of its
source code, typically one to five lines for each fragment, and each
line contains one assignment statement. I need to do this in a few
places (about 10) in a medium size program (about 10k lines).

In the old C days, I would use the stringize operator to capture a few
source fragments. No such thing in VB (too bad, actually). I need
this to work in both debug and production environments. I'm currently
at .NET 2003 FW 1.1, and I'll upgrade if needed to solve this problem.

Where are you fetching the source code from? From within the assembly? I
don't believe the source code is embedded within the built binaries ... so
you'll have to cross reference with the original source code files.
 
Back
Top