using System;
using System.Messaging;
public class MyNewQueue
{
public static void Main()
{
uint numberQueues = 0;
MessageQueueEnumerator myQueueEnumerator = MessageQueue.GetMessageQueueEnumerator();
while(myQueueEnumerator.MoveNext())
{
Console.WriteLine(myQueueEnumerator.Current.Path);
numberQueues++;
}
Console.WriteLine("Number of public queues: " + numberQueues.ToString());
}
}