mercredi 5 décembre 2018

How to use reflection to examine assemblies and search for a type that implements a class and has the same name as a specific string

I am attempting to create a simple virtual machine in C#. I need to use reflection to examine all the loaded assemblies and the types within those assemblies. I want to find a type that implements my Instructions class and has the same name as the string I have entered. When the correct type is found, the search should be closed and an instance of the c# type needs to be created and returned. I'm not too sure how to go about writing this down in code?





Aucun commentaire:

Enregistrer un commentaire