Lines Matching refs:stack
45 public static T elementAt<T>( this Stack<T> stack, int index )
47 return stack.ElementAt( index );
51 public static T peek<T>( this Stack<T> stack )
53 return stack.Peek();
57 public static T pop<T>( this Stack<T> stack )
59 return stack.Pop();
63 public static void push<T>( this Stack<T> stack, T obj )
65 stack.Push( obj );
69 public static int size<T>( this Stack<T> stack )
71 return stack.Count;
75 public static void setSize<T>( this Stack<T> stack, int size )
77 if ( size > stack.Count )
80 while ( stack.Count > size )
81 stack.Pop();