这是我的代码
private void try_catch(Action method)
{
if (method == null) throw new ArgumentNullException("method");
try
{
Connect();
method();
}
catch (SqlException)
{
DisConnect();
}
catch (Exception)
{
DisConnect();
}
finally
{
DisConnect();
}
}
这是错误
使用泛型类型' System.Action'需要' 1'类型参数