在C#中,如何记录类上的Func属性的参数和返回值是推荐的方式? 例如:
public class Test
{
/// <summary>
/// A description of what AFunc is for.
/// </summary>
/// <remarks>
/// Should I document the parameters and return here or somewhere else?
/// </remarks>
public Func<object, string[], bool> AFunc { get; set; }
}
在Visual Studio 2010中,智能感知不会像方法一样在属性上提供param或return标签; 但这些标签仍然是最合适的吗?
编辑:
自从我问了这个问题后,在msdn上的一些xml文档中发现任何有效的xml都可以用来标记,所以我现在的想法更多地是要么简单地使用param和return标签;要么使用自定义标签并决定适当的命名?
public delegate bool MyFuncType(object MyFirstParam, string[] MySecondParam)
的委托替换了Func<object, string[], bool>
。 - Alternator