【发布时间】:2011-01-15 14:06:23
【问题描述】:
让我先说一下我对 C# 非常熟悉的事实。话虽这么说,我正在寻找一种方法来传递带有参数的方法作为参数。 理想情况下,我想做的是:
static void Main(string[] args)
{
methodQueue ( methodOne( x, y ));
}
static void methodOne (var x, var y)
{
//...do stuff
}
static void methodQueue (method parameter)
{
//...wait
//...execute the parameter statement
}
谁能指出我正确的方向?
【问题讨论】:
标签: c# methods parameters