Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,166 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,863 people online right now. Registration is fast and FREE... Join Now!




Find classes in a file with reflection

 
Reply to this topicStart new topic

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

ericode
19 Dec, 2007 - 07:36 PM
Post #1

D.I.C Head
Group Icon

Joined: 9 Dec, 2006
Posts: 89


Dream Kudos: 75
My Contributions
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.net/blog/PermaLink.asp...tnet=consultant

This post has been edited by ericode: 20 Dec, 2007 - 09:44 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 12:06AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month