Hello everyone my question is very simple.
/// <summary>
/// a description here. for internal use
/// </summary>
private A _Owner;
/// <summary>
/// Same description also here. for outside use
/// </summary>
public A Owner
{
get { return _Owner; }
set { _Owner = value; }
}
Is there a way to avoid writing the same comment twice? It is just a nuisance.
Firstly, note that you do not need intellisense comments for private members, including fields. So you could just remove the first comment. If the meaning of the field isn’t obvious from the name, then you haven’t named it appropriately.
Secondly, for most simple properties, you could remove the explicit field declaration completely…