ToString() 공개 메소드

public ToString ( ) : String
리턴 String
예제 #1
0
 /**
  * A helper method to return a descriptive string for the topic or queue
  * @param destination
  *
  * @return a descriptive string for this queue or topic
  */
 public static String Inspect(ActiveMQDestination destination)
 {
     if (destination is ITopic)
     {
         return("Topic(" + destination.ToString() + ")");
     }
     else
     {
         return("Queue(" + destination.ToString() + ")");
     }
 }
예제 #2
0
		/// <summary>
		/// A helper method to return a descriptive string for the topic or queue
		/// </summary>
		/// <param name="destination"></param>
		/// <returns>a descriptive string for this queue or topic</returns>
		public static String Inspect(ActiveMQDestination destination)
		{
			if(destination is ITopic)
			{
				return "Topic(" + destination.ToString() + ")";
			}
			else
			{
				return "Queue(" + destination.ToString() + ")";
			}
		}