Share via


컴파일러 경고(수준 3) CS0419

업데이트: 2007년 11월

오류 메시지

cref 특성에 모호한 참조가 있습니다. 'Method Name1'. 'Method Name2'(으)로 간주하지만 'Method Name3'을(를) 포함하여 다른 오버로드와 일치할 수도 있습니다.
Ambiguous reference in cref attribute: 'Method Name1'. Assuming 'Method Name2', but could have also matched other overloads including 'Method Name3'.

코드의 XML 문서 주석에서 참조를 확인할 수 없습니다. 이 경고는 메서드가 오버로드된 경우나 같은 이름을 가진 두 개의 식별자가 있는 경우에 발생할 수 있습니다. 이 경고를 해결하려면 정규화된 이름을 사용하여 참조를 명확하게 구분하거나 특정 오버로드를 괄호로 묶습니다.

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

// cs0419.cs
// compile with: /doc:x.xml /W:3
interface I
{
   /// text for F(void)
   void F();
   /// text for F(int)
   void F(int i);
}
/// text for class MyClass
public class MyClass
{
   /// <see cref="I.F"/>
   public static void MyMethod(int i)
   {
   }
/* Try this instead:
   /// <see cref="I.F(int)"/>
   public static void MyMethod(int i)
   {
   }
*/
   /// text for Main
   public static void Main ()
   {
   }
}