private static OperatorInfo[] _infos = MakeOperatorTable(); // table of Operators, names, and alt names for looking up methods.

        public DoOperationBinderHelper(CodeContext context, DoOperationAction action, object[] args)
            : base(context, action)
        {
            _args  = args;
            _types = CompilerHelpers.GetTypes(args);
            _rule.MakeTest(_types);
        }
        public override bool Equals(object obj)
        {
            DoOperationAction other = obj as DoOperationAction;

            if (other == null)
            {
                return(false);
            }
            return(_operation == other._operation);
        }
示例#3
0
 public static DoOperationAction DoOperation(Operators op)
 {
     return(DoOperationAction.Make(op));
 }