samedi 6 août 2016

Invoke abstract class method using reflection c#

My external dll design looks like :

class Engineering
{
   ProjectsCollection project {get;}
}

abstract class ProjectsCollection
{
   public abstract Project Open(string path);
}

I'm able to proceed till getting the method info

MethodInfo info = type.GetMethod("Open");

How to invoke the method "Open"?





Aucun commentaire:

Enregistrer un commentaire