Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }