29-05-2012 The index of elements in a stack increments. i.e. the latest item would have the largest index (which is equal to Stack.Length – 1). But when you use Stack.ToArray() method it returns items in the other way. So the first item in the array is the last item you put in the stack. ThisContinue reading “How to Convert a Stack to an Array Without Losing The LIFO Order”