컴파일러 오류 C3103
'argument': 반복된 명명된 인수
특성은 명명된 인수를 반복할 수 없습니다.
자세한 내용은 User-Defined Attributes을 참조하세요.
예시
다음 샘플에서는 C3103을 생성합니다.
// C3103.cpp
// compile with: /clr /c
using namespace System;
[AttributeUsage(AttributeTargets::All)]
public ref class Attr : public Attribute {
public:
int m_t;
};
[Attr(m_t = 10, m_t = 1)] // C3103
// try the following line instead
// [Attr(m_t = 10)]
ref class A {};