mardi 25 décembre 2018

How to create a delegate (type) using reflection emit API in C#?

How to emit a delegate type into a dynamic assembly (reflection emit API)?
I have looked into System.Reflection.Emit.DynamicMethod.CreateDelegate and System.Reflection.MethodInfo.CreateDelegate methods. Unfortunately, these does not create a delegate type (as a member of assembly) into a dynamic assembly.





Aucun commentaire:

Enregistrer un commentaire