Open ghost opened 3 years ago
@FreePhoenix888 @TwinkmrMask do you have any ideas how to make these comments better?
/// <summary>
/// <para>Initializes a <see cref="Range"/> instance.</para>
/// <para>Инициализирует экземпляр <see cref="Range"/>.</para>
/// </summary>
/// </summary>
/// <param name="minimum"><para>The minimum value of the range.</para><para>Минимальное значение диапазона.</para></param>
/// <param name="maximum"><para>The maximum value of the range.</para><para>Максимальное значение диапазона.</para></param>
/// <exception cref="ArgumentException"><para>The <paramref name="maximum"/> is less than the <paramref name="minumum"/>.</para><para><paramref name="maximum"/> меньше <paramref name="minumum"/>.</para></exception>
Take an example from here. Check how they have written Exceptions
. Shorter: remove Thrown when ...
from your exception description, write only the condition when the exception throwns.
By the way I would recommend to read about recommended tags for docs.
/// <summary> /// <para>Initializes a <see cref="Range"/> instance.</para> /// <para>Инициализирует экземпляр <see cref="Range"/>.</para> /// </summary> /// </summary> /// <param name="minimum"><para>The minimum value of the range.</para><para>Минимальное значение диапазона.</para></param> /// <param name="maximum"><para>The maximum value of the range.</para><para>Максимальное значение диапазона.</para></param> /// <exception cref="ArgumentException"><para>The <paramref name="maximum"/> is less than the <paramref name="minumum"/>.</para><para><paramref name="maximum"/> меньше <paramref name="minumum"/>.</para></exception>
Take an example from here. Check how they have written
Exceptions
. Shorter: removeThrown when ...
from your exception description, write only the condition when the exception throwns. By the way I would recommend to read about recommended tags for docs.
Nice one, can you please apply your changes to all constructors? Make a commit with a message Closes #47
and it will close this issue.
Should I push it into main branch directly or create a branch and pull request?
@FreePhoenix888 directly.
Gentlemens, the <summary>
tag is closed 2 times
There was also an agreement to write at the beginning of <param>
Представляет/Represents something
For example:
Represents the minimum value of the range.
Gentlemens, the
<summary>
tag is closed 2 times There was also an agreement to write at the beginning of<param>
Представляет/Represents something For example:Represents the minimum value of the range.
Do you have any thoughts how to improve documentation here?
it is necessary to improve the comments of class constructors.