예제 #1
0
파일: Node.cs 프로젝트: 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>()));
        }
예제 #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());
        }