NSoft.NFramework.StackTracer.GetStackTraceDepth C# (CSharp) Method

GetStackTraceDepth() public static method

현재 StackTrace 정보의 갯수를 반환한다.
public static GetStackTraceDepth ( string currentStackTrace ) : int
currentStackTrace string
return int
        public static int GetStackTraceDepth(string currentStackTrace) {
            var stackTraceInfo = GetStackTraceInfo(currentStackTrace);
            var methodCallMatches = StackRegex.Matches(stackTraceInfo);

            return methodCallMatches.Count;
        }