Пример #1
0
 /// <summary>
 /// Creates a new popper
 /// </summary>
 /// <param name="stack">The targeted stack</param>
 public StackPopper(CallStack <TFrame> stack)
 {
     this.callStack = stack;
 }
Пример #2
0
 /// <summary>
 /// Clones this stack.  This method is thread-safe.
 /// </summary>
 protected static void PopulateClone(CallStack <TFrame> original, CallStack <TFrame> clone)
 {
     clone.InnerStack = new Stack <TFrame>(new Stack <TFrame>(
                                               original.InnerStack.Select(frame => frame.Clone() as TFrame)));
 }