mercredi 31 mars 2021

Delegate DynamicInvoke vs MethodInfo invoke?

I recently saw that you can convert a MethodInfo into a Delegate. But sometimes you may not know what exactly its params or type is. So thats where Delegate.DynamicInvoke comes into play.

But whats the difference between those two ? Which is faster and which produces less GC alloc calls ?





Aucun commentaire:

Enregistrer un commentaire