첨부 된 속성에 대한 XML 문서 주석을 어디에 두어야합니까?
-
11-07-2019 - |
문제
다음과 같이 정의 된 첨부 된 속성이 있다고 가정합니다.
public static string GetMyProperty(DependencyObject obj)
{
return (string)obj.GetValue(MyPropertyProperty);
}
public static void SetMyProperty(DependencyObject obj, string value)
{
obj.SetValue(MyPropertyProperty, value);
}
// Using a DependencyProperty as the backing store for MyProperty. This enables animation, styling, binding, etc...
public static readonly DependencyProperty MyPropertyProperty =
DependencyProperty.RegisterAttached("MyProperty", typeof(string), typeof(MyClass), new UIPropertyMetadata(0));
속성 식별자에 대한 문서를 쓸 수 있습니다 (MyPropertyProperty
) 및 액세서 (Accessors) (GetMyProperty
그리고 SetMyProperty
), 그러나 나는 어디에 문서를 넣을지 전혀 모른다. myclass.myproperty 첨부 된 속성, 실제 코드 요소가 아니기 때문에.
MSDN 라이브러리에는 이러한 문서가 포함되어 있습니다 (예 : Grid.Row
), 가능해야합니다 ...
첨부 된 속성에 대한 XML 문서 주석을 어디에 넣어야합니까?
해결책
있습니다 기사 Sandcastle의 경우.
다른 팁
대답은 조금 늦었지만 Visual Studio의 런타임 중 문서 모양을위한 솔루션을 찾았습니다.
Resharper를 사용하고 누르면 CTRL 키큐 그런 다음 위에 추가 된 XML 문서화 SetXXX
-메드는 Quick-Documentation
.
제휴하지 않습니다 StackOverflow