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>())); }
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()); }