I have a method I am trying to make a little more easy to widely deploy.
NHibernateISession.log4netLogFileEntry("DEBUG", "hello",
System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
I would like to reduce the System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName
to a simple this
.
But how do I get the FullName
from this.FullName
?
Just fyi in case it helps you:
System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName
gives you the
<namespace>.<namespace>.<namespace>.<class>