示例#1
0
 public override bool Equals(object obj)
 {
     if (obj != null)
     {
         AddressAndPort other = (AddressAndPort)obj;
         return(this.ToString().Equals(other.ToString(), StringComparison.InvariantCultureIgnoreCase));
     }
     return(false);
 }
示例#2
0
 public static string Parse(AddressAndPort ap)
 {
     return(ap.ToString());
 }