컴파일러 오류 CS1677
업데이트: 2007년 11월
오류 메시지
'number' 매개 변수는 'keyword' 키워드와 함께 선언할 수 없습니다.
Parameter 'number' should not be declared with the 'keyword' keyword
이 오류는 무명 메서드의 매개 변수 형식 한정자가 메서드를 캐스팅하려는 대리자의 선언에 사용된 한정자와 일치하지 않는 경우 발생합니다.
예제
다음 샘플에서는 CS1677 오류가 발생하는 경우를 보여 줍니다.
// CS1677.cs
delegate void D(int i);
class Errors
{
static void Main()
{
D d = delegate(out int i) { }; // CS1677
// To resolve, use the following line instead:
// D d = delegate(int i) { };
D d = delegate(ref int j){}; // CS1677
// To resolve, use the following line instead:
// D d = delegate(int j){};
}
}