使用 MethodInfo 调用带参数的方法

参考来自链接 https://www.cnblogs.com/CodingHiding/articles/3328362.html

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.CodeDom.Compiler;
using Microsoft.CSharp;
using System.Reflection;namespace WindowsFormsApplication1
{public partial class Form1 : Form{public Form1(){InitializeComponent();}private void button1_Click(object sender, EventArgs e){Excute_code_1();}private void Excute_code_1(){CSharpCodeProvider objCSharpCodePrivoder = new CSharpCodeProvider();ICodeCompiler objICodeCompiler = objCSharpCodePrivoder.Cr

本文链接:https://my.lmcjl.com/post/8922.html

展开阅读全文

4 评论

留下您的评论.