How to document the method's attributes along with the method?



Is it possible to include an attribute information in the generated xml documentation together with the method's documentation?


For example, this code:



/// <summary>
/// This is a summary.
/// </summary>
/// <param name="s"></param>
/// <returns></returns>
[MyAttribute("one", "two", "three")]
public string MyMethod(string s)
{
throw new NotImplementedException();
}


will produce something like this in the XML documentation:



<member name="M:MyNameSpace.MyMethod(System.String)">
<summary>
This is a summary.
</summary>
<param name="s"></param>
<returns></returns>
</member>


Is there any way I could get something like this in the XML documentation:



<member name="M:MyNameSpace.MyMethod(System.String)">
<attributes>
<attribute name="MyAttribute">
<param name="one"/>
<param name="two"/>
<param name="three"/>
</attribute>
</attributes>
<summary>
This is a summary.
</summary>
<param name="s"></param>
<returns></returns>
</member>


Thanks in advance for all the answers!


No comments:

Post a Comment