ClassSystem.Collections.Stack (standard version) System.Collections.Generic.Stack (generic version) SyntaxDim result( ) As Object = stackVariable.ToArray( ) DescriptionThe ToArray method creates an array of type Object, copies the elements of the stack in order into the array, and then returns the array. The array need not be created in advance. Usage at a GlanceThe top item on the stack becomes array element zero. Version DifferencesVisual Basic 2005 adds support for generics to stacks, as discussed in Chapter 10. See AlsoStack Class, Stack.CopyTo Method |