상속: IDelayedOperation
예제 #1
0
        public bool Equals(AbstractOperation op)
        {
            // If parameter is null return false:
            if ((object)op == null)
            {
                return(false);
            }

            // Return true if the operation types match:
            return(OperationType.Equals(op.OperationType));
        }
예제 #2
0
        public override bool Equals(Object obj)
        {
            // If parameter is null return false.
            if ((object)obj == null)
            {
                return(false);
            }

            // If parameter cannot be cast to DelayedOperation return false.
            AbstractOperation op = obj as AbstractOperation;

            if ((object)op == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return(Equals(op));
        }
예제 #3
0
        public bool Equals(AbstractOperation op)
        {
            // If parameter is null return false:
            if ((object)op == null)
            {
                return false;
            }

            // Return true if the operation types match:
            return OperationType.Equals(op.OperationType);
        }