コード例 #1
0
        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);
        }
コード例 #2
0
        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));
 }