B
benben
How can I convert a stack to array?
I have a Stack of System.Drawing.Point's and I would like to invoke
Graphics.DrawCurve, which takes a Point[] array as parameter.
I tried Stack.ToArray but it only returns an object[].
I tried to do element copy, but I cannot foresee the size of the stack (so I
cannot allocate the array anyway.)
Any suggestion would be greatly appreciated!
ben
I have a Stack of System.Drawing.Point's and I would like to invoke
Graphics.DrawCurve, which takes a Point[] array as parameter.
I tried Stack.ToArray but it only returns an object[].
I tried to do element copy, but I cannot foresee the size of the stack (so I
cannot allocate the array anyway.)
Any suggestion would be greatly appreciated!
ben