111,118
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
cici(A, B);
}
static void A()
{
MessageBox.Show("static A()");
}
void B()
{
MessageBox.Show("instance B()");
}
[DllImport("diaoyong.dll")]
static extern void cici(MethodInvoker a, MethodInvoker b);
}
}