Ejemplo n.º 1
0
        public static bool TryParse(string address, out SmartHost smarthost)
        {
            smarthost = null;
            RoutingHost routingHost;

            if (RoutingHost.TryParse(address, out routingHost))
            {
                smarthost = new SmartHost(routingHost);
                return(true);
            }
            return(false);
        }
Ejemplo n.º 2
0
        public static bool IsValidAddress(string address)
        {
            SmartHost smartHost;

            return(!address.EndsWith(".") && SmartHost.TryParse(address, out smartHost));
        }
Ejemplo n.º 3
0
        public override bool Equals(object comparand)
        {
            SmartHost smartHost = comparand as SmartHost;

            return(smartHost != null && this.Equals(smartHost));
        }
Ejemplo n.º 4
0
 public bool Equals(SmartHost value)
 {
     return(object.ReferenceEquals(this, value) || this.routingHost.Equals(value.routingHost));
 }