Share via


컴파일러 경고(수준 2) CS1710

업데이트: 2007년 11월

오류 메시지

'type'의 XML 주석에 'parameter'에 대한 형식 매개 변수 태그 중에 중복되는 항목이 있습니다.
XML comment on 'type' has a duplicate typeparam tag for 'parameter'

제네릭 형식의 문서에 형식 매개 변수에 대한 중복된 태그가 있습니다.

예제

다음 코드에서는 CS1710 경고가 발생하는 경우를 보여 줍니다.

// CS1710.cs
// compile with: /doc:cs1710.xml
// To resolve this warning, delete one of the duplicate <typeparam>'s.
using System;
class Stack<ItemType>
{
}

/// <typeparam name="MyType">can be an int</typeparam>
/// <typeparam name="MyType">can be an int</typeparam>
class MyStackWrapper<MyType>
{
    // Open constructed type Stack<MyType>.
    Stack<MyType> stack;
    public MyStackWrapper(Stack<MyType> s)
    {
        stack = s;
    }
}

class CMain
{
    public static void Main()
    {
        // Closed constructed type Stack<int>.
        Stack<int> stackInt = new Stack<int>();
        MyStackWrapper<int> MyStackWrapperInt =
            new MyStackWrapper<int>(stackInt);
    }
}