Click here to Skip to main content
16,004,836 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi EveryOne...

I have an Requirement to collect all the method names from .CS file which is uploaded using OpenDialogue Control,and when i select any method names from list of methods that retrieved i need to show the method body or method content...

i have used reflection but i came to know that its only for compiled ones and not for .cs,

PLs help me out...
Posted

1 solution

Read it as a plain text file: you know where a method starts so you can work out where it ends (or, perhaps, where the next method begins) and then display everything in between.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900