This may be totally off-base -- I have not tried anything like this -- When you load an assembly with .LoadFile, AFAIK that does not establish the "current directory" that the assembly loader "probes" when looking for externally referenced assemblies. That is, the location of your executable that does the reflection is the place the loader will look.
Do things work if you move your executable to the place where the target assemblies are? Or, if you change the current directory (within your reflecting app) to the directory where all your assemblies are, that might help. As far as avoiding the get_ / set_ / add_ / remove_ routines, I think the code you're using (testing for the known prefixes) is the right approach. At 01:34 AM 12/16/2004, Girish Jain wrote >Hi All, > >My basic purpose is to create some sort of documentation for a very big >assembly which has a lot of classes and a lot of methods within it. > >I am having an issue relating to extracting Parameter Type info. I have as >assembly and this assembly references several other custom assemblies. These >custom assemblies are created by me and are within the same directory > >I load the assesmbly and extract all the exported types and then methods. >When I try to extract the parameters info on the MethodInfo object by >calling GetParameters method I get "FileNotFoundException" for one of the >referenced assemby. > >Also, I want to extract only methods which are - >-- Public/Non-Public methods declared withing the class and do not want >Property and Event methods (i.e. get_XX, set_XXX, add_XXx, and remove_XX) > >which I am unable to achieve > > >Any sort of help, highly appreciated > >Thanks in advance > >Regards, >Girish Jain > > >Here's is the code:- > > p_Asmbly = [Assembly].LoadFile(txtAssemblyPath.Text) >[snip] J. Merrill / Analytical Software Corp =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with C# November 29 - December 3, in Los Angeles http://www.develop.com/courses/edotnet View archives and manage your subscription(s) at http://discuss.develop.com