示例#1
0
        internal static Instruction CreateUntypedInstruction(CallSiteBinder binder, int argCount)
        {
            switch (argCount)
            {
            case 0:
                return(DynamicInstruction <object> .Factory(binder));

            case 1:
                return(DynamicInstruction <object, object> .Factory(binder));

            case 2:
                return(DynamicInstruction <object, object, object> .Factory(binder));

            case 3:
                return(DynamicInstruction <object, object, object, object> .Factory(binder));

            case 4:
                return(DynamicInstruction <object, object, object, object, object> .Factory(binder));

            case 5:
                return(DynamicInstruction <object, object, object, object, object, object> .Factory(binder));

            case 6:
                return(DynamicInstruction <object, object, object, object, object, object, object> .Factory(binder));

            case 7:
                return(DynamicInstruction <object, object, object, object, object, object, object, object> .Factory(binder));

            case 8:
                return(DynamicInstruction <object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 9:
                return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 10:
                return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 11:
                return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 12:
                return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 13:
                return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 14:
                return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 15:
                return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));
            }
            return(null);
        }
        internal static Instruction CreateUntypedInstruction(CallSiteBinder binder, int argCount)
        {
            switch (argCount)
            {
                #region Generated Untyped Dynamic Instructions

            // *** BEGIN GENERATED CODE ***
            // generated by function: gen_untyped from: generate_dynamic_instructions.py

            case 0: return(DynamicInstruction <object> .Factory(binder));

            case 1: return(DynamicInstruction <object, object> .Factory(binder));

            case 2: return(DynamicInstruction <object, object, object> .Factory(binder));

            case 3: return(DynamicInstruction <object, object, object, object> .Factory(binder));

            case 4: return(DynamicInstruction <object, object, object, object, object> .Factory(binder));

            case 5: return(DynamicInstruction <object, object, object, object, object, object> .Factory(binder));

            case 6: return(DynamicInstruction <object, object, object, object, object, object, object> .Factory(binder));

            case 7: return(DynamicInstruction <object, object, object, object, object, object, object, object> .Factory(binder));

            case 8: return(DynamicInstruction <object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 9: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 10: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 11: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 12: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 13: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 14: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 15: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

                // *** END GENERATED CODE ***

                #endregion

            default: return(null);
            }
        }
 public void EmitDynamic <T0, T1, T2, TRet>(CallSiteBinder binder)
 {
     Emit(DynamicInstruction <T0, T1, T2, TRet> .Factory(binder));
 }
 public void EmitDynamic <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TRet>(CallSiteBinder binder)
 {
     Emit(DynamicInstruction <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TRet> .Factory(binder));
 }
示例#5
0
 public void EmitDynamic <T0, T1, T2, T3, T4, T5, T6, T7, TRet>(CallSiteBinder binder)
 {
     this.Emit(DynamicInstruction <T0, T1, T2, T3, T4, T5, T6, T7, TRet> .Factory(binder));
 }