I am calling a method where one of the arguments is of type object. How do I load that on the stack?
MethodInfo addoutputinfo = tb.BaseType.GetMethod("addoutput", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
ctor1IL.Emit(OpCodes.Ldarg_0);
ctor1IL.Emit(OpCodes.Ldstr, fi.Name);
//second argument is a generic object
Aucun commentaire:
Enregistrer un commentaire