private string MethodName
{
get
{
MethodBase m = MethodBase.GetCurrentMethod();
return String.Format("{0}.{1}", m.ReflectedType.Name, m.Name);
}
}
I'd like to do something like this but of course now the call is made from a different method to the one I want to describe. Is there a simple way around this or an obvious alternative?
Aucun commentaire:
Enregistrer un commentaire