編譯器錯誤 CS1108
更新:2007 年 11 月
錯誤訊息
一個參數無法擁有所有指定的修飾詞,因為參數上有太多修飾詞。
因為特定參數修飾詞 (Modifier) 組合 (如 ref 和 out) 的意義對編譯器 (Compiler) 而言互斥,所以不允許。
範例
下列範例會產生 CS1108:
// cs1108.cs
// Compile with: /target:library
public class Test
{
// Regular Instance Method.
public void TestMethod(ref out int i) {} // CS1108
}