lundi 30 mai 2016

Reflection help required c#

// is there any alternative for Assembly.Load(InjRes) method in this code? // foreach on the methods or some thing?

Assembly SampleAssembly = Assembly.Load(InjRes);

Type t = SampleAssembly.GetType("Resource.reflect");

MethodInfo BahNahNah = t.GetMethod("Run");

bool inj = (bool)BahNahNah.Invoke(null, new object[] { Assembly.GetExecutingAssembly().Location, "", Runner, false }); Console.WriteLine("Injected: {0}", inj);





Aucun commentaire:

Enregistrer un commentaire