public override bool Equals(object obj) { var other = obj as MethodToMethodCall; if (other == null) { return(false); } return(Caller.Equals(other.Caller) && Callee.Equals(other.Callee)); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (ReferenceEquals(obj, this)) { return(true); } if (obj.GetType() != this.GetType()) { return(false); } Call call = obj as Call; return(Caller.Equals(call.Caller) && CallDirection == call.CallDirection); }