다음을 통해 공유


컴파일러 오류 CS0619

'member'는 사용되지 않습니다: '텍스트'

클래스 멤버가 사용되지 않는 특성으로 표시되었으므로 클래스 멤버를 참조할 때 오류가 발생합니다.

예시

다음 샘플에서는 CS0619를 생성합니다.

using System;

public class C
{
    [Obsolete("Use NewMethod instead", true)] // generates an error on use
    public static void OldMethod()
    {
    }

    // this is the method you should be using
    public static void NewMethod()
    {
    }  
}

class MyClass
{
   public static void Main()
   {
      C.OldMethod();   // CS0619
   }
}