Find classes in a file with reflection

Can all the classes in a particular source file be found with reflecti

Page 1 of 1

0 Replies - 2334 Views - Last Post: 19 December 2007 - 08:36 PM Rate Topic: -----

#1 ericode  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 7
  • View blog
  • Posts: 112
  • Joined: 09-December 06

Find classes in a file with reflection

Posted 19 December 2007 - 08:36 PM

I have been googling this for a while but can't seem to find the answer. I want to be able to find what classes are in a particular .cs file using reflection. If this is only possible via parsing the file, that would be good to know as well.

EDIT:

Turns out I really wanted to find all classes an a namespace, not necessarily the file. Found a solution for that at this site:
http://www.ben-rush....tnet=consultant

This post has been edited by ericode: 20 December 2007 - 10:44 AM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1