コード例 #1
0
ファイル: CallStack.cs プロジェクト: nathanscottdaniels/pnant
 /// <summary>
 /// Creates a new popper
 /// </summary>
 /// <param name="stack">The targeted stack</param>
 public StackPopper(CallStack <TFrame> stack)
 {
     this.callStack = stack;
 }
コード例 #2
0
ファイル: CallStack.cs プロジェクト: nathanscottdaniels/pnant
 /// <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)));
 }