2016-12-21 4 views
6

여기서 cref 속성을 사용할 때 T: 부분의 의미는 무엇입니까?크리프에서 사용할 때의 "T :"는 무엇입니까

<see cref="T:System.Windows.Form.Control"/> 

그것은 본질적으로 코드 참조 컴파일러가 문서에 ID를 생성 할 때 참조 것과 주석의
<see cref="System.Windows.Form.Control"/> 

답변

6

. 여기에서 T은 참조되는 System.Windows.Form.Control 이름이 유형이고 네임 스페이스 또는 다른 구성원이 아님을 나타냅니다.

자체적으로 텍스트 System.Windows.Form.Control은 다른 의미를 가질 수 있습니다. 예를 들어 네임 스페이스이거나 System.Windows.Form 개체의 Control 구성원 일 수 있습니다. 이것은 정확히 무엇인지 설명하는 데 도움이됩니다.

컴파일러에서 사용하는 다른 규칙에 대한 자세한 내용은 docs에서 볼 수 있습니다. 다음과 같이

다른 접두사

은 다음과 같습니다

N namespace 
T type: class, interface, struct, enum, delegate 
F field 
P property (including indexers or other indexed properties) 
M method (including such special methods as constructors, operators, and so forth) 
E event 
! error string 
관련 문제