public void StartListenMethod(MethodTrace methodInfo) { if (_stackOfMethods.Count == 0) { AllMethodsInfo.Add(methodInfo); } else { _stackOfMethods.Peek().AddNestedMethod(methodInfo); } _stackOfMethods.Push(methodInfo); }
public void AddNestedMethod(MethodTrace nestedMethod) { NestedMethods.Add(nestedMethod); }