I have *.dll written with C# and I need to get list of all public methods or classes contained in that *.dll. Is there some way to do it programmatically with C#?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Yes use Assembly.GetTypes to extract all of the types, and then use reflection on each type to iterate the public methods.
GetExportedTypes will return all public types in the assembly. You also didn't specify whether you wanted just instance methods, static methods or both.
Use System.Net.Reflection. Reflection classes let you query the metadata of types of a DLL at run time.
Something like
this.GetType().Assembly.GetTypes();