更新:2007 年 11 月
错误消息
参数不能具有所有指定的修饰符;该参数上的修饰符太多。有些参数修饰符的组合(如 ref 和 out)是不允许的,因为它们对于编译器来说是互相排斥的。
示例
下面的示例生成 CS1108:
复制代码 | |
---|---|
// cs1108.cs // Compile with: /target:library public class Test { // Regular Instance Method. public void TestMethod(ref out int i) {} // CS1108 } |