Share via


<see>(C# 프로그래밍 가이드)

업데이트: 2007년 11월

<see cref="member"/>

매개 변수

  • cref = "member"
    현재 컴파일 환경에서 호출될 수 있는 멤버 또는 필드에 대한 참조입니다. 컴파일러는 지정된 코드 요소가 있고 출력 XML의 요소 이름에 member가 전달되는지 검사합니다.member를 큰따옴표(" ")로 묶습니다.

설명

<see> 태그를 사용하면 텍스트 내부에서 링크를 지정할 수 있습니다. 참고 항목 부분에 배치할 텍스트를 지정하려면 <seealso>를 사용합니다.

/doc로 컴파일하여 문서 주석을 파일로 저장합니다.

<see> 사용 예제는 <summary>를 참조하십시오.

예제

다음 예제에서는 제네릭 형식에 대한 cref 참조를 만드는 방법을 보여 줍니다.

// compile with: /doc:DocFileName.xml 

// the following cref shows how to specify the reference, such that,
// the compiler will resolve the reference
/// <summary cref="C{T}">
/// </summary>
class A { }

// the following cref shows another way to specify the reference, 
// such that, the compiler will resolve the reference
// <summary cref="C &lt; T &gt;">

// the following cref shows how to hard-code the reference
/// <summary cref="T:C`1">
/// </summary>
class B { }

/// <summary cref="A">
/// </summary>
/// <typeparam name="T"></typeparam>
class C<T> { }

참고 항목

개념

C# 프로그래밍 가이드

참조

문서 주석에 대한 권장 태그(C# 프로그래밍 가이드)