public bool Equals(GrainReference other) { if (other == null) { return(false); } if (genericArguments != other.genericArguments) { return(false); } if (!GrainId.Equals(other.GrainId)) { return(false); } if (IsSystemTarget) { return(Equals(SystemTargetSilo, other.SystemTargetSilo)); } if (IsObserverReference) { return(observerId.Equals(other.observerId)); } return(true); }
public bool Equals(GrainReference other) { if (other == null) { return(false); } if (genericArguments != other.genericArguments) { return(false); } return(Equals(SystemTargetSilo, other.SystemTargetSilo) && GrainId.Equals(other.GrainId)); }