日期:2014-05-17 浏览次数:21054 次
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
PublicFunc.Add = (i, i1) => i + i1;
PublicFunc.AddHeight = i => i + Height;
}
}
public class PublicFunc
{
public static Func<int, int, int> Add;
public static Func<int, int> AddHeight;
}
private void Func(A a)
{
object ob = new object();
a.obj = ob;
}