There is anyway to gives the queue id name? (0,1,2 and so on):
foreach (var item in FirstLineKeyValuePairs)
{
Queue *name* = new Queue());
}
i want the give name to the new Queue().
There is anyway to gives the queue id name? (0,1,2 and so on):
foreach (var item in FirstLineKeyValuePairs)
{
Queue *name* = new Queue());
}
i want the give name to the new Queue().
You can easily achieve this with an array or a list of queues:
var queues = new List<Queue>();
foreach (var item in FirstLineKeyValuePairs)
{
queues.Add(new Queue());
}
Now you can access them by an index:
var q1 = queues[0];
This is not the exact thing you want, but usually you don´t care for variable-names and want only access the data of any variable. You don´t need its "name" for that as shown above.