編譯器錯誤 CS1107
更新:2007 年 11 月
錯誤訊息
一個參數只能有一個 'modifier name' 修飾詞。
發生的錯誤是參數修飾詞 (Modifier) (如 this、ref 和 out) 在參數定義中出現多次。
範例
下列範例會產生 CS1107:
// cs1107.cs
public static class Test
{
// Extension methods.
public static void TestMethod(this this t) {} // CS1107
// Regular Instance Method
public void TestMethod(ref ref int i) {} // CS1107
}