Share via


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

업데이트: 2007년 11월

오류 메시지

'class member' 전용 필드가 사용되지 않았습니다.
The private field 'class member' is never used

선언한 전용 변수를 참조하지 않았습니다. 일반적으로 이 경고는 클래스의 전용 멤버를 선언하고 이를 사용하지 않을 경우 발생합니다.

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

// compile with: /W:3
using System;
public class ClassX
{
   int i;   // CS0169, i is not used anywhere

   public static void Main()
   {
   }
}