Share via


컴파일러 오류 CS1107

업데이트: 2007년 11월

오류 메시지

매개 변수에는 'modifier name' 한정자 하나만 사용할 수 있습니다.
A parameter can only have one '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

}