vendredi 22 février 2019

how to generate method with an out parameter

Using System.Reflection, how can I generate a method with an out parameter?

I can generate a ref using MakeByRefType but I can't find anything about any MakeOutType...

typeBuilder.DefineMethod("myfunc", MethodAttributes.Public | MethodAttributes.Static, typeof(void), new Type[] { typeof(int).MakeByRefType() });





Aucun commentaire:

Enregistrer un commentaire