Duality.Log.CurrentType C# (CSharp) Method

CurrentType() public static method

Returns the name of the caller methods declaring type.
public static CurrentType ( int skipFrames ) : string
skipFrames int The number of frames to skip. This function itsself is omitted by default.
return string
        public static string CurrentType(int skipFrames = 0)
        {
            return Type(CurrentStackFrame(skipFrames + 1).GetMethod().DeclaringType);
        }