jeudi 1 janvier 2015

Get real type of generic method

In my logging module I have the line:


MethodBase methodBase = new StackFrame(2, false).GetMethod();


The method I inspect is a generic method and defined as T[] MyMethod<T>(). Is there a way to get its real type instead of T from methodBase?






Aucun commentaire:

Enregistrer un commentaire