public void StartListenMethod(MethodTrace methodTrace) { if (_stackMethods.Count == 0) { MethodList.Add(methodTrace); } else { _stackMethods.Peek().AddNestedMethod(methodTrace); } _stackMethods.Push(methodTrace); }
public void AddNestedMethod(MethodTrace nestedTrace) { NestedMethods.Add(nestedTrace); }