Share via


컴파일러 오류 CS0111

업데이트: 2007년 11월

오류 메시지

'class' 클래스는 동일한 매개 변수 형식을 가진 'member' 멤버를 미리 정의합니다.
Type 'class' already defines a member called 'member' with the same parameter types

CS0111은 클래스에 이름 및 매개 변수 형식이 같은 두 개의 멤버 선언이 있는 경우에 발생합니다. 자세한 내용은 메서드(C# 프로그래밍 가이드)를 참조하십시오.

예제

다음 샘플에서는 CS0111 오류가 발생하는 경우를 보여 줍니다.

// CS0111.cs
class A
{
   void Test() { }
   public static void Test(){}   // CS0111
   
   public static void Main() {}
}