Each time I open an assembly in reflector, I see this special <Module>
type that shows up. Recently, I came across an assembly that has a static method defined in this type and I want to invoke it through reflection. Is this possible?
Btw, this method has privatescope
hidebysig
method attributes
EDIT:
Assembly assembly = Assembly.LoadFile(assemblyPath); Type moduleType = assembly.GetType("<Module>");
The above piece of code returns a null.