mercredi 21 juin 2017

Accessing external Assembly Reflection

I am kind of new to Reflection and have gone through some basic examples, but I cannot figure out how to accomplish my goal.

I have a small console application which I want to call an assembly from. in this case the assembly is a Class Library Containing multiple classes and what I want to achieve is listing all of my classes with their children and parent classes.

       Assembly asm = Assembly.LoadFrom(@"C:\Sandbox\Functions\Bin\Debug\Functions.dll");

       Type T = asm.GetType();

So I have loaded the file but I am uncertain where to go now, how to use the metadata in order to access the necessary files and classes. Would appreciate some advice or references to other examples (Which I tried to search for).





Aucun commentaire:

Enregistrer un commentaire