Ejemplo n.º 1
0
Archivo: Node.cs Proyecto: lulzzz/kino
        public bool Equals(IDestination other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (other.GetType() != GetType())
            {
                return(false);
            }

            return(StructuralCompare(other.As <Node>()));
        }
Ejemplo n.º 2
0
        public bool Equals(IDestination other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (other.GetType() != GetType())
            {
                return(false);
            }

            return(GetIdentity() == other.As <ILocalSocket <T> >()
                   .GetIdentity());
        }