我正在尝试为我的Web API项目使用自动生成文档。我有一个用..编写的ApplicationController。
/// <param name="application">
这是Application类型,具有公共属性,例如..
[DataContract]
public class Application : ICanBeAuthenticated
{
/// <summary>
/// Email (string): Required. Email address of the applicant. Must be a valid email address.
/// </summary>
[DataMember(IsRequired = true)]
public string Email { get; set; }
...
}
我可以检索电子邮件的摘要标记,但是我想访问属性名称“电子邮件”以将其与其描述,任何想法分开?
理想情况下,我希望能够拥有类似的东西。
/// <name>
/// Email (string)
/// </name>
/// <description>
/// Required. Email address of the applicant. Must be a valid email address.
/// </description>
[DataMember(IsRequired = true)]
public string Email { get; set; }