컴파일러 경고(수준 1) CS3005

업데이트: 2007년 11월

오류 메시지

대/소문자만 다른 'identifier' 식별자가 CLS 규격이 아닙니다.
Identifier 'identifier' differing only in case is not CLS-compliant

하나 이상의 대/소문자에 의해서만 다른 public, protected 또는 protectedinternal 식별자와 구분되는 public, protected 또는 protectedinternal 식별자는 CLS(공용 언어 사양) 규격이 아닙니다. CLS 규격에 대한 자세한 내용은 CLS 규격 코드 작성공용 언어 사양을 참조하십시오.

예제

다음 예제에서는 CS3003 오류가 발생하는 경우를 보여 줍니다.

// CS3005.cs

using System;

[assembly:CLSCompliant(true)]
public class a
{
    public static int a1 = 0;
    public static int A1 = 1;   // CS3005

    public static void Main()
    {
        Console.WriteLine(a1);
        Console.WriteLine(A1);
    }
}