>Reverse() is an extension method and the result of Reverse() is an IEnumerable< int > in your case (it doesn't change the source). It works:
>
> var result = xx.Reverse(); // should get 3, 2, 1 but still get 1,2,3
>
>
> Console.WriteLine("Stack");
>
> foreach(int i in result)
> Console.Write("{0} ", i);
> Console.WriteLine();
>
>
>Maybe instead you should use Queue() class for your needs - FIFO?
>
>Cetin
Yes, Cetin - found out about the extension method - see message#
1407804As to the Queue - I know. But there are times when at the end of an operation that has worked with a stack, you need to reverse it
Gregory