我有2个私有consts和一个公共方法:
private const byte _minAge = 24;
private const byte _maxAge = 29;
public bool IsInAgeRange() { ... }
Run Code Online (Sandbox Code Playgroud)
我正在添加XML文档,如果我的代码的用户可以在IntelliSense中读取它,我希望它是最好的: Checks whether the age is within the allowed range (between 24 and 29).
我的问题是:有没有办法将我的consts渲染到我的XML文档中?
我提出的替代方案是:
<see cref="MinAge">和<see cref="MaxAge">(减少封装并使文档信息量减少)