Queue q = new Queue(); q.Enqueue("Sachin"); q.Enqueue('A'); q.Enqueue(false); q.Enqueue(38); q.Enqueue(5.4);
IEnumerator e;
e = q.GetEnumerator();
while (e.MoveNext())
Console.WriteLine(e.Current);
IEnumerable e;
e = q.GetEnumerator();
while (e.MoveNext())
Console.WriteLine(e.Current);
IEnumerator e;
e = q.GetEnumerable();
while (e.MoveNext())
Console.WriteLine(e.Current);
IEnumerator e;
e = Queue.GetEnumerator();
while (e.MoveNext())
Console.WriteLine(e.Current);
IEnumerator e;
e = q.GetEnumerator();
while (e.MoveNext())
Console.WriteLine(e.Current);
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.