/// <devdoc> /// Returns information about the top stack frames in a string format. The input param determines the number of /// frames to include. The 'message' parameter is used as the header of the returned string. /// </devdoc> public static string StackTraceToStr(string message, int frameCount) { return(string.Format(CultureInfo.CurrentCulture, "{0}\r\nTop Stack Trace:\r\n{1}", message, DbgUtil.StackFramesToStr(frameCount))); }