mercredi 11 décembre 2019

list class name, methods and namespaces for given dll file

I am trying to display a list of class names and method names and namespaces for the given DLL file path. I don't intend to create an object. We want information about the class, methods and namespaces.

If anyone could provide the code to just display the class, methods and namespace information it would be a great help.

I tried below, Assembly assem1 = Assembly.ReflectionOnlyLoadFrom(@"some.dll path"); Type[] types = assem1.GetTypes();

Getting below error, System.Reflection.ReflectionTypeLoadException: 'Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.'

Any help is highly appreciated.





Aucun commentaire:

Enregistrer un commentaire