Example #1
0
 /// <summary>
 /// Returns a string representation of this connection which names the ports in each end.
 /// </summary>
 public override string ToString()
 {
     if (String.IsNullOrWhiteSpace(Name))
     {
         return(String.Format("{0} <-> {1}", Port1 != null ? Port1.ToString() : "N/A", Port2 != null ? Port2.ToString() : "N/A"));
     }
     else
     {
         return(Name);
     }
 }