ApprovalUtilities.SimpleLogger.LoggerInstance.GetCallingMethod C# (CSharp) Method

GetCallingMethod() public method

public GetCallingMethod ( ) : string
return string
        public string GetCallingMethod()
        {
            var outsideCallingMethod =
                new Caller().Methods.First(m => m.DeclaringType.Namespace != this.GetType().Namespace);
            return outsideCallingMethod.ToStandardString();
        }