更新:2007 年 11 月
错误消息
参数“number”必须与关键字“keyword”一起传递如果您要将参数传递给带有
下面的示例生成 CS1620:
// CS1620.cs
class C
{
void f(ref int i) {}
public static void Main()
{
int x = 1;
f(out x); // CS1620 – f takes a ref parameter, not an out parameter
// Try this line instead:
// f(ref x);
}
} | |