컴파일러 경고(수준 3) CS0067
업데이트: 2007년 11월
오류 메시지
'event' 이벤트는 사용되지 않습니다.
The event 'event' is never used
event가 선언되었지만 선언된 클래스에서 이벤트를 사용하지 않았습니다.
다음 샘플에서는 CS0067 오류가 발생하는 경우를 보여 줍니다.
// CS0067.cs
// compile with: /W:3
using System;
delegate void MyDelegate();
class MyClass
{
public event MyDelegate evt; // CS0067
// uncomment TestMethod to resolve this CS0067
/*
private void TestMethod()
{
if (evt != null)
evt();
}
*/
public static void Main()
{
}
}