Apache.NMS.ActiveMQ.Commands.ActiveMQDestination.Inspect C# (CSharp) Method

Inspect() public static method

A helper method to return a descriptive string for the topic or queue
public static Inspect ( ActiveMQDestination destination ) : String
destination ActiveMQDestination
return String
        public static String Inspect(ActiveMQDestination destination)
        {
            if(destination is ITopic)
            {
                return "Topic(" + destination.ToString() + ")";
            }
            else
            {
                return "Queue(" + destination.ToString() + ")";
            }
        }