Queue Dequeue ArrayList Count 0?
Posted on 2011-02-10
I can successfully Enqueue ArrayList's to a Collections.Queue. Having problem Dequeue-ing ArrayList. I know the Queued ArrayLists contain data by running a foreach at myQueue.cs
internal class myQueue
private static Queue que = Queue.Synchronized(new Queue());
internal static void Enque(ArrayList list)
internal static ArrayList Deque()
Every attempt to dequeue the queued ArrayList returns a count of 0, although I know the Queue definitely has ArrayList's queued.
ArrayList arr = new ArrayList(Que.Deque()); //count=0
ArrayList arr = new ArrayList(); arrData.AddRange(Que.Deque()); //count=0
ArrayList arr = Que.Deque();//count=0
ArrayList arr = (ArrayList)Que.Deque();//count=0
ArrayList arr = new ArrayList();
arr = Que.Deque();