Queue.ToArray Method

   
Queue.ToArray Method

Class

System.Collections.Queue

Syntax

   queuevariable   .ToArray(  ) 

Return Value

An Array of type Object

Description

This method creates an array of type Object, copies the elements of the queue in order to that array, and then returns the array.

Programming Tips and Gotchas

Unlike the CopyTo method, we do not need to define an array in advance. However, we cannot specify the starting array index for the copy procedure using ToArray.

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net