Exemple #1
0
        public static UserDefOperatorInvoke UserDefOperatorInvoke(Identifier name, Node condition)
        {
            UserDefOperatorInvoke userOp = new UserDefOperatorInvoke(name);

            userOp.Condition = condition;
            return(userOp);
        }
Exemple #2
0
        public override bool Equals(object obj)
        {
            if (!(obj is UserDefOperatorInvoke))
            {
                return(false);
            }

            UserDefOperatorInvoke opInvoke = (UserDefOperatorInvoke)obj;

            return((this.function == opInvoke.function) && (this.name == opInvoke.name) &&
                   (this.condition == opInvoke.condition) &&
                   (this.leftarg == opInvoke.leftarg) && (this.rightarg == opInvoke.rightarg));
        }
 public static UserDefOperatorInvoke UserDefOperatorInvoke(Identifier name, Node condition)
 {
     UserDefOperatorInvoke userOp = new UserDefOperatorInvoke(name);
     userOp.Condition = condition;
     return userOp;
 }