public override void Generate(CodeGen cg, Slot contextSlot, Slot[] argSlots) { cg.EmitInt(count); cg.Emit(OpCodes.Newarr, parameter.Type); for (int i = 0; i < count; i++) { cg.Emit(OpCodes.Dup); cg.EmitInt(i); argSlots[start + i].EmitGet(cg); cg.EmitConvertFromObject(parameter.Type); cg.EmitStelem(parameter.Type); } }