Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AllSegmentsWalkerBase new documentation #137

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

kiritozevs
Copy link

No description provided.

/// Represents the all segments walker base.
/// </para>
/// <para></para>
/// <para>All Segment sWalker Base or Class with WalkAll method to walk through all segments in the dictionary.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides the base class from which the classes that represent all segments walker are derived. This is an abstract class.

/// </summary>
public abstract class AllSegmentsWalkerBase
{
/// <summary>
/// <para>
/// The default minimum string segment length.
/// Default value for the field _minimumStringSegmentLength object of the same class. Assigned when the constructor is called.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gets default minimum string segment length.
Use Возвращает in Russian version.

/// Represents the all segments walker base.
/// </para>
/// <para></para>
/// <para>All Segment sWalker Base or Class with WalkAll method to walk through all segments in the dictionary.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides the base class from which the classes that represent all segments walker are derived. This is an abstract class.

/// </para>
/// <para></para>
/// <summary>
/// <para>Calls the segment constructor, initializes 3 fields on the segment instance</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initializes a new instance of the <see cref="Segment"/> class, using the <paramref name="elements"/> list, <paramref name="offset"/> of the segment and its <paramref name="length" />.
Source

/// Дефолтное значение для поля _minimumStringSegmentLength этого же класса, используемого в методе WalkAll. Присваивается при вызове конструктора.
/// </para>
/// <para>Gets default minimum string segment length.</para>
/// <para>Возвращает дефолтную минимальную длинну строки мегмента.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use по умолчанию instead of дефолтная

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Возвращает дефолтную минимальную длинну строки мегмента.</para>
/// <para>Равняется минимально допустимой длиной сегмента.</para>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uselessgoddess then Возвращает минимально допустимую длину сегмента.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, i'm Russian

/// <para>Calls the segment constructor, initializes 3 fields on the segment instance</para>
/// <para>Вызывает конструктор сегмента, инициализирует 3 поля у экземпляра сегмента.</para>
/// <summary>
/// <para>Initializes a new instance of the <see cref="Segment"/> class, using the <paramref name="base"/> list of the segment, Offset relative to the list<paramref name="offset"/> and The segment's length <paramref name="length" />.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Things like "the base parameter is the a of the segment", "the offset parameter is an offset relative to the list", "the length parameter is an length of the segment" specified in param tags, so we should follow the programming rule DRY.
Initializes a new instance of the <see cref="Segment"/> class, using the <paramref name="base"/>, <paramref name="offset"/>, <paramref name="length"/>.

/// <returns>
/// <para>An instance of the Segment class.</para> <para>Экземпляр класса Segment<T>.</para>
/// </returns>
/// <param name="base"><para>The reference to the original list containing the elements of this segment.</para><para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para></param>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reference instead of The reference because of it is the parameter, and reference passed as argument is not known in this context. We have to get ANY reference passed as base argument, not specific reference.
Add line terminator between </para> and <para>

/// <para>An instance of the Segment class.</para> <para>Экземпляр класса Segment<T>.</para>
/// </returns>
/// <param name="base"><para>The reference to the original list containing the elements of this segment.</para><para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para></param>
/// <param name="offset"><para>The offset relative to the <paramref name="base"/> list from which the segment starts.</para><para>Смещение относительно списка <paramref name="base"/>, с которого начинается сегмент.</para></param>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same as above

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write easier

/// </returns>
/// <param name="base"><para>The reference to the original list containing the elements of this segment.</para><para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para></param>
/// <param name="offset"><para>The offset relative to the <paramref name="base"/> list from which the segment starts.</para><para>Смещение относительно списка <paramref name="base"/>, с которого начинается сегмент.</para></param>
/// <param name="length"><para>The segment's length.</para><para>Длина сегмента.</para></param>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same as above

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why The does not translate to my lovely language?

/// </para>
/// <para></para>
/// <para>Provides the base class from which the classes that represent all segments walker are derived. This is an abstract class.</para>
/// <para>Предоставляет базовый класс, от которого наследуются классы, реализующие AllSegmentsWalkerBase. Это абстрактный класс.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol. Review of the Russian text in English language

Suggested change
/// <para>Предоставляет базовый класс, от которого наследуются классы, реализующие AllSegmentsWalkerBase. Это абстрактный класс.</para>
/// <para>Базовый абстрактный класс для всех [вставьте тут синоним слова "волкеров"]</para>

Use smaller doc-comments
No extra information is needed

The subjective thinking of a C++fan

Comment on lines 23 to 24
/// <para>Instance of the Segment class<T></para>
/// <para>Экземпляр класса Segment</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use more full comments

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a see tag for the Segment, by the way the see tag can refer to Generic class, therefore do not remove , use {T} in the see tag

/// The default minimum string segment length.
/// </para>
/// <para></para>
/// <para>Gets default minimum string segment length.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Gets default minimum string segment length.</para>
/// <para>Gets a default minimum length of string segment.</para>

More readable, and a added.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hold my tea

/// <para>The length.</para>
/// <para></para>
/// </param>
/// <param name="elements"><para>A reference to the original list containing the elements of this segment.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <param name="elements"><para>A reference to the original list containing the elements of this segment.</para>
/// <param name="elements">
<para>A reference to the original list containing the elements of this segment.</para>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm...

Suggested change
/// <param name="elements"><para>A reference to the original list containing the elements of this segment.</para>
/// <param name="elements">
/// <para>A reference to the original list containing the elements of this segment.</para>

/// <para></para>
/// </param>
/// <param name="elements"><para>A reference to the original list containing the elements of this segment.</para>
/// <para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para></param>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para></param>
/// <para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para>
</param>

/// </param>
/// <param name="elements"><para>A reference to the original list containing the elements of this segment.</para>
/// <para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para></param>
/// <param name="offset"><para>The offset relative to the <paramref name="elements"/> list from which the segment starts.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <param name="offset"><para>The offset relative to the <paramref name="elements"/> list from which the segment starts.</para>
/// <param name="offset">
<para>An offset relative to the <paramref name="elements"/> list from which the segment starts.</para>

/// <param name="elements"><para>A reference to the original list containing the elements of this segment.</para>
/// <para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para></param>
/// <param name="offset"><para>The offset relative to the <paramref name="elements"/> list from which the segment starts.</para>
/// <para>Смещение относительно списка <paramref name="elements"/>, с которого начинается сегмент.</para></param>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Смещение относительно списка <paramref name="elements"/>, с которого начинается сегмент.</para></param>
/// <para>Смещение относительно списка <paramref name="elements"/>, с которого начинается сегмент.</para>
</param>

/// <para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para></param>
/// <param name="offset"><para>The offset relative to the <paramref name="elements"/> list from which the segment starts.</para>
/// <para>Смещение относительно списка <paramref name="elements"/>, с которого начинается сегмент.</para></param>
/// <param name="length"><para>The segment's length.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <param name="length"><para>The segment's length.</para>
/// <param name="length">
<para>A length of the segment.</para>

/// <param name="offset"><para>The offset relative to the <paramref name="elements"/> list from which the segment starts.</para>
/// <para>Смещение относительно списка <paramref name="elements"/>, с которого начинается сегмент.</para></param>
/// <param name="length"><para>The segment's length.</para>
/// <para>Длина сегмента.</para></param>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Длина сегмента.</para></param>
/// <para>Длина сегмента.</para>
</param>

/// <para>A segment of t</para>
/// <para></para>
/// </returns>
/// <para>Gets instance of the <see cref="Segment"/> class<T></para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Gets instance of the <see cref="Segment"/> class<T></para>
/// <para>Initiailizes a new instance of the <see cref="Segment"/> class<T></para>

/// <para></para>
/// </returns>
/// <para>Gets instance of the <see cref="Segment"/> class<T></para>
/// <para>Возвращает экземпляр класса <see cref="Segment"/></para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Возвращает экземпляр класса <see cref="Segment"/></para>
/// <para>Инициализирует новый экземпляр класса <see cref="Segment"/></para>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это делает только конструктор
Придумайте что-то новенькое

Copy link
Member

@uselessgoddess uselessgoddess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments are ignored by compiler

@@ -9,7 +9,7 @@ namespace Platform.Collections.Segments.Walkers
public abstract class AllSegmentsWalkerBase
{
/// <summary>
/// <para>Gets default minimum string segment length.</para>
/// <para>>Gets a default minimum length of string segment.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>>Gets a default minimum length of string segment.</para>
/// <para>Gets a default minimum length of the string segment.</para>

/// <para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para>
/// </param>
/// <param name="offset">
/// <para>The offset relative to the <paramref name="elements"/> list from which the segment starts.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>The offset relative to the <paramref name="elements"/> list from which the segment starts.</para>
/// <para>An offset relative to the <paramref name="elements"/> list from which the segment starts.</para>

/// <para>Смещение относительно списка <paramref name="elements"/>, с которого начинается сегмент.</para>
/// </param>
/// <param name="length">
/// <para>The segment's length.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>The segment's length.</para>
/// <para>A segment's length.</para>

/// <returns>
/// <para>Gets instance of the <see cref="Segment"/> class<T></para>
/// <para>Возвращает экземпляр класса <see cref="Segment"/></para>
/// <para>instance of the <see cref="Segment"/> class<T></para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>instance of the <see cref="Segment"/> class<T></para>
/// <para>An instance of the <see cref="Segment{T}"/> class.</para>

/// <para>Gets instance of the <see cref="Segment"/> class<T></para>
/// <para>Возвращает экземпляр класса <see cref="Segment"/></para>
/// <para>instance of the <see cref="Segment"/> class<T></para>
/// <para>экземпляр класса <see cref="Segment"/></para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>экземпляр класса <see cref="Segment"/></para>
/// <para>Экземпляр класса <see cref="Segment{T}"/>.</para>

@FreePhoenix888 FreePhoenix888 requested a review from Konard August 28, 2021 15:59
Copy link
Member

@uselessgoddess uselessgoddess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sounds strange in Russian

/// </para>
/// <para></para>
/// <para>Represents the base abstract class for walkers on all elements.</para>
/// <para>Представляет базовый абстрактный класс для проходчиков по всем элементам.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Представляет базовый абстрактный класс для проходчиков по всем элементам.</para>
/// <para>Базовый абстрактный класс для проходчиков по всем элементам.</para>

/// </para>
/// <para></para>
/// <para>Gets a default minimum length of the string segment.</para>
/// <para>Возвращает минимально допустимую длину сегмента.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Возвращает минимально допустимую длину сегмента.</para>
/// <para>Минимально допустимая длина сегмента.</para>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поле только для чтения, которое представляет ...
... минимальную длину сегмента последовательности по умолчанию.

/// </para>
/// <para></para>
/// <para>Represents the base abstract class for walkers on all elements.</para>
/// <para>Представляет базовый абстрактный класс для проходчиков по всем элементам.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Представляет базовый абстрактный класс для проходчиков по всем элементам.</para>
/// <para>Базовый абстрактный класс для проходчиков по всем элементам.</para>

/// </para>
/// <para></para>
/// <para>Initializes a new instance of the <see cref="Segment"/> class.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Segment"/></para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Инициализирует новый экземпляр класса <see cref="Segment"/></para>
/// <para>Создаёт новый экземпляр класса <see cref="Segment"/></para>

Create --> Создавать (порождать)

/// <para>The elements.</para>
/// <para></para>
/// <para>A reference to the original list containing the elements of this segment.</para>
/// <para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Ссылка на исходный список в котором находятся элементы этого сегмента.</para>
/// <para>Исходный список в котором находятся элементы этого сегмента.</para>

/// </returns>
/// <para>An instance of the <see cref="Segment{T}"/> class.</para>
/// <para>Экземпляр класса <see cref="Segment{T}"/> .</para>
///</returns>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
///</returns>
/// </returns>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also have extra spaces on lines 32 and 33

Copy link
Member

@TwinkmrMask TwinkmrMask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pay attention to possible similar errors

@@ -31,7 +31,7 @@ public abstract class AllSegmentsWalkerBase<T> : AllSegmentsWalkerBase<T, Segmen
/// <returns>
/// <para>An instance of the <see cref="Segment{T}"/> class.</para>
/// <para>Экземпляр класса <see cref="Segment{T}"/> .</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An extra space before the dot, as well as on line 17

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also an extra space on line 21

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra space

/// <para>The elements.</para>
/// <para></para>
/// <para>List of elements.</para>
/// <para>Список элементов.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra space

/// </param>
/// <param name="offset">
/// <para>The offset.</para>
/// <para></para>
/// <para>An offset relative to the <paramref name="elements"/> list from which the segment starts.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>An offset relative to the <paramref name="elements"/> list from which the segment starts.</para>
/// <para>An offset relative to the start of the<paramref name="elements"/> from which the segment starts.</para>

Copy link
Member

@Konard Konard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was close.

/// </para>
/// <para></para>
/// <para>Represents the base abstract class for walkers on all elements.</para>
/// <para>Представляет базовый класс для проходчиков по всем элементам.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... по всем возможным сегментам последовательности.

/// </para>
/// <para></para>
/// <para>Gets a default minimum length of the string segment.</para>
/// <para>Возвращает минимально допустимую длину сегмента.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поле только для чтения, которое представляет ...
... минимальную длину сегмента последовательности по умолчанию.

/// The default minimum string segment length.
/// </para>
/// <para></para>
/// <para>Gets a default minimum length of the string segment.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A read-only field that represents ...
... the default minimum sequence segment length.

/// Represents the all segments walker base.
/// </para>
/// <para></para>
/// <para>Represents the base class for sinkers for all possible segments of the sequence.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Represents the base class for sinkers for all possible segments of the sequence.</para>
/// <para>Represents a base class for walkers through all possible segments of a sequence.</para>

/// </para>
/// <para></para>
/// <para>Initializes a new instance of the <see cref="Segment"/> class.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Segment"/> .</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a constructor, but a virtual method.

Suggested change
/// <para>Инициализирует новый экземпляр класса <see cref="Segment"/> .</para>
/// <para>Создаёт новый экземпляр класса <see cref="Segment{T}"/> на основе последовательности <paramref name="elements"/>.</para>

/// </summary>
/// <param name="elements">
/// <para>The elements.</para>
/// <para></para>
/// <para>List of elements.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>List of elements.</para>
/// <para>A list of elements.</para>

/// </param>
/// <param name="offset">
/// <para>The offset.</para>
/// <para></para>
/// <para>An offset relative to the start of the <paramref name="elements"/> from which the segment starts.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>An offset relative to the start of the <paramref name="elements"/> from which the segment starts.</para>
/// <para>An offset relative to the <paramref name="elements"/> sequence from which the segment starts.</para>

Copy link
Member

@uselessgoddess uselessgoddess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiler ignores comments

@@ -31,7 +31,7 @@ public abstract class AllSegmentsWalkerBase<T> : AllSegmentsWalkerBase<T, Segmen
/// <returns>
/// <para>An instance of the <see cref="Segment{T}"/> class.</para>
/// <para>Экземпляр класса <see cref="Segment{T}"/> .</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra space

/// The default minimum string segment length.
/// </para>
/// <para></para>
/// <para>A read-only field that represents the minimum length of the default sequence segment.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>A read-only field that represents the minimum length of the default sequence segment.</para>
/// <para>A read-only field that represents the default minimum length of the sequence segment.</para>

public abstract class AllSegmentsWalkerBase<T> : AllSegmentsWalkerBase<T, Segment<T>>
{
/// <summary>
/// <para>Create a new instance of the <see cref="Segment"/> class based on <paramref name="elements"/> sequence.</para>
/// <para>Создаёт новый экземпляр класса <see cref="Segment"/> на основе последовательности <paramref name="elements"/>.</para>
/// <para>Создаёт новый экземпляр класса <see cref="Segment"/> на основе последовательности <paramref name="elements"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Создаёт новый экземпляр класса <see cref="Segment"/> на основе последовательности <paramref name="elements"/>.</para>
/// <para>Создаёт новый экземпляр класса <see cref="Segment{T}"/> на основе последовательности <paramref name="elements"/>.</para>

/// <typeparam name="T">
/// <para>The sequence's element type.</para>
/// <para>Тип элемента последовательности.</para>
/// </typeparam>
public abstract class AllSegmentsWalkerBase<T> : AllSegmentsWalkerBase<T, Segment<T>>
{
/// <summary>
/// <para>Create a new instance of the <see cref="Segment"/> class based on <paramref name="elements"/> sequence.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Create a new instance of the <see cref="Segment"/> class based on <paramref name="elements"/> sequence.</para>
/// <para>Create a new instance of the <see cref="Segment{T}"/> class based on <paramref name="elements"/> sequence.</para>

Copy link
Member

@Konard Konard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final touches.

/// Represents the all segments walker base.
/// </para>
/// <para></para>
/// <para>Represents a base class for walkers through all possible segments of a sequence.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Represents a base class for walkers through all possible segments of a sequence.</para>
/// <para>Represents the base class for walkers through all possible segments of a sequence.</para>

/// Represents the all segments walker base.
/// </para>
/// <para></para>
/// <para>Represents the base class for sinkers for all possible segments of the sequence.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <para>Represents the base class for sinkers for all possible segments of the sequence.</para>
/// <para>Represents the base class for walkers through all possible segments of a sequence.</para>

Copy link
Member

@Konard Konard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost done.

Copy link
Member

@TwinkmrMask TwinkmrMask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We kindly ask you to read the review carefully and ask questions if there are any

/// </para>
/// <para></para>
/// <para>Constructor referencing another constructor by passing a field to its parameter <see cref="DefaultMinimumStringSegmentLength"/>.</para>
/// <para>Конструктор, ссылающийся на другой конструктор, передавая в его параметр поле <see cref="DefaultMinimumStringSegmentLength"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Конструктор, ссылающийся на свою перегрузку, передавая в его параметр поле

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same as above

@@ -72,23 +64,23 @@ public virtual void WalkAll(IList<T> elements)
/// <para>
/// Creates the segment using the specified elements.
/// </para>
/// <para></para>
/// <para>Представляет базовый метод, для всех методов создания мегмента.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This translation is not correct

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This documentation is incorrect. Check any documentation of abstract classes: Stream abstract class and its methods

@@ -97,7 +89,7 @@ public virtual void WalkAll(IList<T> elements)
/// <para>
/// Iterations the segment.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description is not complete

@@ -97,7 +89,7 @@ public virtual void WalkAll(IList<T> elements)
/// <para>
/// Iterations the segment.
/// </para>
/// <para></para>
/// <para>Представляет базоый метод, для всех методов итерации.</para>
/// </summary>
/// <param name="segment">
/// <para>The segment.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description is not complete

@@ -96,7 +89,7 @@ public virtual void WalkAll(IList<T> elements)
/// <para>
/// Iterations the segment.
/// </para>
/// <para></para>
/// <para>Представляет базоый метод, для всех методов итерации.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This documentation is incorrect. Check any documentation of abstract classes: Stream abstract class and its methods

/// </param>
/// <returns>
/// <para>The segment</para>
/// <para></para>
/// <para>Created megment</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is an article?

/// <param name="length">
/// <para>The length.</para>
/// <para></para>
/// <param name="length">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete extra space

@@ -72,23 +64,23 @@ public virtual void WalkAll(IList<T> elements)
/// <para>
/// Creates the segment using the specified elements.
/// </para>
/// <para></para>
/// <para>Представляет базовый метод, для всех методов создания мегмента.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This documentation is incorrect. Check any documentation of abstract classes: Stream abstract class and its methods

/// </para>
/// <para></para>
/// <para>Represents the base class for walkers through all possible segments of a sequence.</para>
/// <para>Представляет базовый класс для проходчиков по всем возможным сегментам последовательности.</para>
/// </summary>
/// <seealso cref="AllSegmentsWalkerBase"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this? seealso must be used inside tags like summary, param and so on

/// </summary>
/// <param name="minimumStringSegmentLength">
/// <para>A minimum string segment length.</para>
/// <para></para>
/// <para>The parameter that takes a field <see cref="DefaultMinimumStringSegmentLength"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This description is not descriptive. Check how microsoft documentate parameters

/// <para>A minimum string segment length.</para>
/// <para></para>
/// <para>The parameter that takes a field <see cref="DefaultMinimumStringSegmentLength"/>.</para>
/// <para>Параметр, принимающий поле <see cref="DefaultMinimumStringSegmentLength"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same as above

/// Initializes a new <see cref="AllSegmentsWalkerBase"/> instance.
/// </para>
/// <para></para>
/// <para>Constructor referencing another constructor by passing a field to its parameter <see cref="DefaultMinimumStringSegmentLength"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same as above

/// </para>
/// <para></para>
/// <para>Constructor referencing another constructor by passing a field to its parameter <see cref="DefaultMinimumStringSegmentLength"/>.</para>
/// <para>Конструктор, ссылающийся на другой конструктор, передавая в его параметр поле <see cref="DefaultMinimumStringSegmentLength"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same as above

@@ -3,19 +3,17 @@
namespace Platform.Collections.Segments.Walkers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the pragma statement above because XML comments are not missing now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants