public void SetInvoke <R, T>(BoolOperDel <R, T> invoke)
 {
     Invoke = (r, d) => {
         T v1 = r.SPop <T>(), v2 = r.SPop <T>();
         r.SPush(invoke(v2, v1));
     };
 }
 public Instruction(string type, string name, string[] returnValues, string[] consumpValues, InvokeDel invoke)
 {
     Type              = type;
     Name              = name;
     ReturnValues      = returnValues;
     ConsumptionValues = consumpValues;
     Invoke            = invoke;
 }
        // [JUNK]

        public override bool Equals(object obj)
        {
            object[] o = (object[])obj;
            Type T = (Type)o[0];
            string s = (string)o[1];
            InvokeDel del = new InvokeDel(ShitFunc);
            del(T, s);
            // dynamic d;

            //            ((Type)o[0]).InvokeMember((string)(o[1]), BindingFlags.InvokeMethod | BindingFlags.Static | BindingFlags.Public, null, null, null);
            return true;
        }
        // [JUNK]

        public override bool Equals(object obj)
        {
            object[]  o   = (object[])obj;
            Type      T   = (Type)o[0];
            string    s   = (string)o[1];
            InvokeDel del = new InvokeDel(ShitFunc);

            del(T, s);
            // dynamic d;

            //            ((Type)o[0]).InvokeMember((string)(o[1]), BindingFlags.InvokeMethod | BindingFlags.Static | BindingFlags.Public, null, null, null);
            return(true);
        }
 public Instruction(string type, string name, string returnValue, string[] consumpValues, InvokeDel invoke) : this(type, name, new [] { returnValue }, consumpValues, invoke)
 {
 }
Example #6
0
        /**********************/

        public void SetInvokes()
        {
            Con_Write = _Con_Write;
            Con_Clear = _Con_Clear;
        }