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?
T[] MyMethod<T>()
T
methodBase
Aucun commentaire:
Enregistrer un commentaire